/* Design tokens lifted from the app's Theme.swift so the site and the product
   read as one thing. Light values are the "Kâğıt" paper theme, dark values the
   "Gece" theme, matching what the app switches between. */
:root {
  --paper: #F4EFE6;
  --sheet: #FCF7F0;
  --card: #FEFBF6;
  --ink: #1C1712;
  --muted: #6B6158;
  --line: #E3D7C8;
  --terracotta: #B55238;
  --terracotta-soft: #F2C9A0;
  --forest: #3D5C4A;
  --forest-soft: #D1DFD5;
  --highlight: #F6D18B;
  --on-accent: #FEFBF6;

  --display: ui-serif, "New York", Iowan Old Style, Georgia, serif;
  --ui: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius-card: 18px;
  --radius-control: 12px;
  --measure: 62ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1816;
    --sheet: #25221F;
    --card: #2D2926;
    --ink: #F1ECE5;
    --muted: #B0A69C;
    --line: #4A423C;
    --terracotta-soft: #5C3328;
    --forest: #9ED1B0;
    --forest-soft: #23342A;
    --highlight: #523D24;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 0; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--terracotta); text-decoration: none; letter-spacing: -0.01em;
}
nav { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
nav a:hover { color: var(--ink); }

/* ---------- shared ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0; max-width: var(--measure); }

section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.85rem;
}
.lede { font-size: 1.16rem; color: var(--muted); margin-top: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--terracotta); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--terracotta); }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--forest-soft); color: var(--forest);
  font-size: 0.85rem; font-weight: 600;
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(3rem, 8vw, 5.5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

/* A nod to the app's ruled note card. */
.note-card {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.8rem 1.8rem 1.8rem 3.2rem; overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(28, 23, 18, 0.5);
}
.note-card::before {
  content: ""; position: absolute; inset-block: 0; left: 2.1rem;
  width: 1px; background: color-mix(in srgb, var(--terracotta) 45%, transparent);
}
.note-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.note-card .source {
  font-size: 0.82rem; font-weight: 700; color: var(--terracotta); margin-bottom: 0.2rem;
}
.claim {
  border-left: 3px solid var(--highlight);
  padding: 0.6rem 0 0.6rem 0.85rem; margin-top: 1.1rem;
}
.claim p { font-size: 0.98rem; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.chip {
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem;
  border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- features ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2.6rem; }
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1.5rem;
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.98rem; }
.feature .mark {
  width: 38px; height: 38px; border-radius: var(--radius-control);
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--terracotta-soft); color: var(--terracotta);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}

.band { background: var(--sheet); border-block: 1px solid var(--line); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.6rem; align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.plan.featured { border-color: var(--terracotta); border-width: 2px; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan h3 { font-size: 1.35rem; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; white-space: nowrap; }
.price small { font-family: var(--ui); font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.plan li { display: flex; gap: 0.6rem; font-size: 0.96rem; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--forest); font-weight: 700; flex: none; }
.plan .note { font-size: 0.85rem; color: var(--muted); }

/* ---------- sign in ---------- */
.providers { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.provider {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 1.1rem; border-radius: var(--radius-control);
  background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem;
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; }
.foot { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.foot p { color: var(--muted); font-size: 0.9rem; }
.foot nav { margin-left: auto; }

/* ---------- legal pages ---------- */
.prose { padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: var(--measure); }
.prose .updated { font-size: 0.9rem; }
