/*
 * Shared styles for the inkvale.web.app pages.
 *
 * privacy.html and delete-account.html predate this file and inline their own
 * copy of the same tokens — deliberately left alone, because their URLs are
 * declared in the Play Console listing and there is nothing to gain from
 * touching a live, working page.
 */

:root {
  --ink: #2a3170;
  --brand: #4a5bd7;
  --light: #93a5ff;
  --text: #23263a;
  --muted: #5c6070;
  --bg: #f7f8fd;
  --card: #ffffff;
  --line: #e4e7f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #c6cdff;
    --brand: #93a5ff;
    --text: #e7e9f5;
    --muted: #a2a7bd;
    --bg: #12141f;
    --card: #1a1d2e;
    --line: #2a2e45;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

header {
  background: linear-gradient(135deg, var(--brand), var(--ink));
  color: #fff;
  padding: 40px 20px;
}

header .wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

header h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
}

header p {
  margin: 0;
  opacity: 0.85;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

h2 {
  color: var(--ink);
  font-size: 1.25rem;
  margin: 34px 0 10px;
}

h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 22px 0 6px;
}

ul {
  padding-left: 1.3em;
}

li {
  margin: 6px 0;
}

a {
  color: var(--brand);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 18px;
}

/* ------------------------------ Get Inkvale ------------------------------ */

/* One card per platform. `auto-fit` rather than a fixed column count so the
   row collapses to two-up on a phone without a media query. */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s, transform 0.15s;
}

a.platform:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.platform svg {
  width: 30px;
  height: 30px;
  color: var(--brand);
  margin-bottom: 2px;
}

.platform strong {
  font-size: 1rem;
  color: var(--ink);
}

.platform span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Platforms with no download yet. Shown rather than hidden so the range is
   honest about where Inkvale runs — and every one of these still works today
   as an installed web app. */
.platform.soon {
  opacity: 0.85;
  border-style: dashed;
}

.pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}

/* ------------------------------- Pricing -------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.plan {
  position: relative;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
}

.plan.best {
  border-color: var(--brand);
}

.plan .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.plan .per {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ------------------------------ Home page ------------------------------- */

.hero {
  text-align: center;
  padding: 56px 20px 8px;
}

.drop {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--light), var(--brand) 45%, var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 12px 34px rgba(42, 49, 112, 0.35);
}

.drop svg {
  width: 52px;
  height: 52px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  color: var(--ink);
}

.hero .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

nav.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}

nav.links a {
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

nav.links a:hover {
  border-color: var(--brand);
}
