/* ============================================================
   HesapSis — Landing Page
   Aesthetic: "Refined Ledger" — warm-paper financial minimalism
   Display: Fraunces (serif)  ·  Body: Hanken Grotesk
   ============================================================ */

:root {
  /* Brand tokens (mirrors the app's "Refined Ledger" theme) */
  --paper: oklch(0.992 0.003 95);
  --paper-2: oklch(0.978 0.004 95);
  --card: oklch(1 0 0);
  --ink: oklch(0.205 0.012 264);
  --ink-soft: oklch(0.34 0.018 264);
  --muted: oklch(0.552 0.014 264);
  --line: oklch(0.912 0.004 90);
  --line-soft: oklch(0.945 0.004 90);

  --primary: oklch(0.47 0.122 256);
  --primary-strong: oklch(0.4 0.12 258);
  --primary-fg: oklch(0.985 0.004 250);
  --primary-soft: oklch(0.952 0.014 256);

  --positive: oklch(0.56 0.118 162);
  --positive-soft: oklch(0.955 0.035 162);
  --negative: oklch(0.555 0.2 24);
  --negative-soft: oklch(0.958 0.03 24);
  --amber: oklch(0.62 0.13 70);
  --amber-soft: oklch(0.95 0.04 78);

  --logo-ink: var(--primary-fg);

  --radius: 0.75rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.5rem;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 264 / 0.05);
  --shadow-md: 0 8px 24px -12px oklch(0.2 0.04 264 / 0.18);
  --shadow-lg: 0 30px 60px -28px oklch(0.2 0.06 264 / 0.32);
  --shadow-card: 0 1px 0 oklch(1 0 0 / 0.6) inset,
    0 18px 40px -24px oklch(0.22 0.05 264 / 0.35);

  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
}

/* ---------------------------------------------------------- Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* faint ledger paper grain + warm vignette */
  background-image:
    radial-gradient(
      120% 80% at 50% -10%,
      oklch(0.97 0.02 256 / 0.5),
      transparent 60%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      oklch(0.5 0.02 264 / 0.022) 31px,
      oklch(0.5 0.02 264 / 0.022) 32px
    );
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

::selection {
  background: oklch(0.47 0.122 256 / 0.18);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------------------------------------------------------- Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.7rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    color 0.18s var(--ease);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-lg {
  font-size: 1.02rem;
  padding: 0.95rem 1.5rem;
  border-radius: 0.75rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  --btn-bg: var(--primary);
  --btn-fg: var(--primary-fg);
  box-shadow: var(--shadow-md), 0 1px 0 oklch(1 0 0 / 0.15) inset;
}
.btn-primary:hover {
  --btn-bg: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 1px 0 oklch(1 0 0 / 0.15) inset;
}

.btn-outline {
  --btn-fg: var(--ink);
  border-color: var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: oklch(0.47 0.122 256 / 0.4);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-ghost {
  --btn-fg: var(--ink-soft);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-on-dark {
  --btn-bg: var(--paper);
  --btn-fg: var(--primary-strong);
  box-shadow: 0 20px 40px -20px oklch(0 0 0 / 0.6);
}
.btn-on-dark:hover {
  transform: translateY(-1px);
  --btn-bg: oklch(1 0 0);
}

.btn-outline-on-dark {
  --btn-fg: oklch(0.97 0.004 95);
  border-color: oklch(1 0 0 / 0.28);
  background: oklch(1 0 0 / 0.04);
}
.btn-outline-on-dark:hover {
  background: oklch(1 0 0 / 0.12);
  border-color: oklch(1 0 0 / 0.5);
}

.btn-arrow {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.992 0.003 95 / 0.8);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark {
  color: var(--primary);
  display: inline-flex;
  width: 2rem;
  height: 2rem;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}
.wordmark-text .accent {
  color: var(--primary);
}

.primary-nav {
  display: flex;
  gap: 0.35rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}
.primary-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav:not([hidden]) {
  display: flex;
}
.mobile-nav a {
  padding: 0.7rem 0.4rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn {
  margin-top: 0.75rem;
}

/* ---------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid oklch(0.47 0.122 256 / 0.16);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 3px oklch(0.56 0.118 162 / 0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-top: 1.3rem;
  color: var(--ink);
}

.ink-underline {
  position: relative;
  white-space: nowrap;
}
.ink-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.5em;
  background: linear-gradient(
    to top,
    oklch(0.7 0.13 70 / 0.42) 0 42%,
    transparent 42%
  );
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 0.9s var(--ease) 0.7s forwards;
}
@keyframes underline-grow {
  to {
    transform: scaleX(1);
  }
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 32rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--positive);
}

/* --- Ledger card (signature visual) --- */
.hero-visual {
  position: relative;
}

.ledger-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.4rem 1.2rem;
  z-index: 2;
  transform: rotate(-1.1deg);
  transition: transform 0.5s var(--ease);
}
.hero-visual:hover .ledger-card {
  transform: rotate(0deg);
}
/* notebook ruled lines behind the card */
.ledger-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 33px,
    oklch(0.47 0.122 256 / 0.05) 33px 34px
  );
  pointer-events: none;
  opacity: 0.6;
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.ledger-customer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid oklch(0.47 0.122 256 / 0.18);
}
.ledger-name {
  font-weight: 600;
  font-size: 1.02rem;
}
.ledger-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.chip-positive {
  color: var(--positive);
  background: var(--positive-soft);
}

.ledger-balance {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 0 1.2rem;
}
.ledger-balance-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.ledger-balance-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  color: var(--primary-strong);
}

.ledger-rows {
  display: flex;
  flex-direction: column;
}
.ledger-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "date desc tag amount";
  align-items: center;
  gap: 0.5rem 0.7rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.lr-date {
  grid-area: date;
  color: var(--muted);
  font-size: 0.78rem;
  min-width: 3.4rem;
}
.lr-desc {
  grid-area: desc;
  font-weight: 500;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag {
  grid-area: tag;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  justify-self: end;
}
.tag-debt {
  color: var(--amber);
  background: var(--amber-soft);
}
.tag-collect {
  color: var(--positive);
  background: var(--positive-soft);
}
.lr-amount {
  grid-area: amount;
  font-weight: 600;
  text-align: right;
  min-width: 4.6rem;
  color: var(--ink);
}
.lr-amount.neg {
  color: var(--positive);
}
.lr-balance {
  display: none;
}

.ledger-foot {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.ledger-mini-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  cursor: default;
}
.ledger-mini-btn.ghost {
  margin-left: auto;
  border-style: dashed;
  color: var(--primary);
}

/* floating chips */
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-chip-1 {
  top: -0.9rem;
  right: -0.5rem;
  animation: float-a 6s ease-in-out infinite;
}
.float-chip-2 {
  bottom: 1.2rem;
  left: -1.4rem;
  animation: float-b 7s ease-in-out infinite;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-green {
  background: var(--positive);
  box-shadow: 0 0 0 3px oklch(0.56 0.118 162 / 0.18);
}
.dot-blue {
  background: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.47 0.122 256 / 0.18);
}
@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* trust strip */
.trust-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  border-block: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}
.trust-strip .sep {
  color: oklch(0.47 0.122 256 / 0.5);
}

/* ---------------------------------------------------------- Sections */
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-head-left {
  margin-inline: 0;
  text-align: left;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.section-head h2 em {
  font-style: italic;
  color: var(--primary);
}
.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------- Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: oklch(0.47 0.122 256 / 0.25);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.8rem;
  margin-bottom: 1.1rem;
}
.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-blue {
  color: var(--primary);
  background: var(--primary-soft);
}
.icon-green {
  color: var(--positive);
  background: var(--positive-soft);
}
.icon-amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------------------------------------------------------- How it works */
.how {
  background: linear-gradient(
    to bottom,
    var(--paper-2),
    oklch(0.97 0.012 256 / 0.5)
  );
  border-block: 1px solid var(--line);
}
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-no {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary);
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid oklch(0.47 0.122 256 / 0.18);
  margin-bottom: 1.1rem;
}
.step h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.step p {
  font-size: 0.92rem;
  color: var(--muted);
}
/* connecting dotted line between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3rem;
  right: -0.75rem;
  width: 1.5rem;
  border-top: 2px dashed oklch(0.47 0.122 256 / 0.3);
}

/* ---------------------------------------------------------- Pricing */
.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin: 1.75rem auto 0;
  padding: 0.3rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.billing-opt {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 1.15rem;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, background 0.25s var(--ease), box-shadow 0.25s;
}
.billing-opt.is-active {
  color: var(--primary-strong);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.save-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--positive);
  background: var(--positive-soft);
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.price-card-featured {
  border-color: oklch(0.47 0.122 256 / 0.45);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    to bottom,
    oklch(0.975 0.012 256),
    var(--card) 30%
  );
}
@media (min-width: 901px) {
  .price-card-featured {
    transform: scale(1.04);
  }
  .price-card-featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}
.popular-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary-fg);
  background: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.price-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.3rem;
  min-height: 2.6em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin: 1.2rem 0 0.4rem;
}
.price-amount .currency {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.price-amount .amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: opacity 0.2s var(--ease);
}
.price-amount .per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.price-note {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
  margin-bottom: 1.4rem;
}
.price-feats {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.price-feats li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.price-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--positive-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l2.5 2.5 6-6.5' stroke='%23198a5a' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0.85rem;
  background-repeat: no-repeat;
  background-position: center;
}
.price-feats li strong {
  font-weight: 700;
  color: var(--ink);
}
.price-fineprint {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

/* amount value swap animation */
.amount.swap {
  animation: amount-swap 0.35s var(--ease);
}
@keyframes amount-swap {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------- FAQ */
.faq {
  border-top: 1px solid var(--line);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: oklch(0.47 0.122 256 / 0.3);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.3s var(--ease);
}
.faq-chevron::before {
  left: 0;
  transform: rotate(45deg);
}
.faq-chevron::after {
  right: 0;
  transform: rotate(-45deg);
}
.faq-item[open] .faq-chevron::before {
  transform: rotate(-45deg);
}
.faq-item[open] .faq-chevron::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

/* ---------------------------------------------------------- CTA band */
.cta-band {
  padding-block: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: oklch(0.97 0.004 95);
  background: linear-gradient(
    155deg,
    oklch(0.36 0.1 262),
    oklch(0.22 0.06 264)
  );
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(oklch(1 0 0) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.06;
  mask-image: radial-gradient(120% 120% at 50% 0%, black, transparent 72%);
}
.cta-inner h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.cta-inner p {
  position: relative;
  margin: 1rem auto 0;
  max-width: 34rem;
  color: oklch(0.97 0.004 95 / 0.75);
  font-size: 1.08rem;
}
.cta-actions {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------------------------------------------------------- Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 18rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s;
  width: fit-content;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  gap: 1.25rem;
}
.footer-legal a:hover {
  color: var(--primary);
}

/* ---------------------------------------------------------- Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: oklch(0.205 0.012 264);
  color: oklch(0.985 0.003 95);
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: 0.75rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.store-badge:hover {
  transform: translateY(-2px);
  background: oklch(0.26 0.014 264);
  box-shadow: var(--shadow-md);
}
.store-badge:active {
  transform: translateY(0) scale(0.99);
}
.store-badge:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.store-icon {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
}
.store-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.store-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.store-tt {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.store-tt .s1 {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.78;
}
.store-tt .s2 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.store-badge-sm {
  padding: 0.42rem 0.8rem;
  border-radius: 0.6rem;
}
.store-badge-sm .store-icon {
  width: 1.3rem;
  height: 1.3rem;
}
.store-badge-sm .store-tt .s2 {
  font-size: 0.9rem;
}

/* ---------------------------------------------------------- Download band */
.download-band {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: 0;
}
.download-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.download-glow {
  display: none;
  position: absolute;
  top: -40%;
  right: -10%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    oklch(0.6 0.13 256 / 0.16),
    transparent 65%
  );
  pointer-events: none;
}
.download-copy {
  position: relative;
}
.download-copy .kicker {
  margin-bottom: 0.55rem;
}
.download-copy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.download-copy p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 32rem;
}
.download-badges {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.soon-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px oklch(0.62 0.13 70 / 0.18);
}

.download-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.85rem);
}

@media (min-width: 880px) {
  .download-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.75rem);
    background: linear-gradient(120deg, oklch(0.972 0.016 256), var(--paper-2));
  }
  .download-glow {
    display: block;
  }
}

/* ---------------------------------------------------------- Carousels (shared) */
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------------- Web showcase */
.showcase-stage {
  max-width: 1000px;
  margin-inline: auto;
}
.browser-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.browser-dots {
  display: inline-flex;
  gap: 0.4rem;
  flex: none;
}
.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.browser-dots i:nth-child(1) {
  background: oklch(0.72 0.16 24);
}
.browser-dots i:nth-child(2) {
  background: oklch(0.82 0.14 80);
}
.browser-dots i:nth-child(3) {
  background: oklch(0.72 0.13 152);
}
.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  max-width: min(60%, 24rem);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-url svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  color: var(--positive);
}
.browser-screen {
  position: relative;
  aspect-ratio: 1.45;
  background: var(--paper);
}
.browser-screen .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.showcase-tab {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.showcase-tab:hover {
  color: var(--primary);
  border-color: oklch(0.47 0.122 256 / 0.4);
}
.showcase-tab.is-active {
  color: var(--primary-fg);
  background: var(--primary);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.showcase-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------- Phone carousel */
.download-phone {
  position: relative;
  width: clamp(196px, 56vw, 236px);
  margin-inline: auto;
}
.phone-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1742 / 3609;
}
.phone-stage .slide {
  transform: translateZ(0);
  backface-visibility: hidden;
}
.phone-stage .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 45px oklch(0.2 0.05 264 / 0.28));
}
.phone-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
}
.pdot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: oklch(0.47 0.122 256 / 0.22);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.pdot.is-active {
  width: 22px;
  background: var(--primary);
}
.pdot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------- Footer apps */
.footer-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-apps-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-right: 0.3rem;
}
.footer-apps-soon {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

/* ---------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  transform: translate(-50%, 1.5rem);
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.15rem;
  border-radius: 0.7rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------- Reveal anim */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ink-underline::after {
    animation: none;
    transform: scaleX(1);
  }
  .float-chip-1,
  .float-chip-2 {
    animation: none;
  }
  .slide {
    transition: none;
  }
}

/* ---------------------------------------------------------- Responsive */
@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }
  .header-actions .btn-ghost,
  .header-actions .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 1rem;
    max-width: 30rem;
  }
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
  .price-card-featured {
    order: -1;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .step::after {
    display: none !important;
  }
  .hero-cta .btn,
  .cta-actions .btn {
    width: 100%;
  }
  .float-chip-2 {
    left: -0.5rem;
  }
  .float-chip-1 {
    right: 0;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Legal pages (privacy-policy.html · terms.html)
   ============================================================ */
.legal-header .header-inner {
  justify-content: space-between;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}
.legal-back:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.legal-back svg {
  width: 1rem;
  height: 1rem;
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.legal-hero .kicker {
  margin-bottom: 0.6rem;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal-hero .legal-updated {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-body {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.legal-prose {
  max-width: 50rem;
  margin-inline: auto;
}
.legal-prose .legal-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.legal-prose section {
  margin-bottom: 2.25rem;
  scroll-margin-top: 88px;
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.legal-prose h2 .legal-no {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.legal-prose h3 {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 1.3rem 0 0.5rem;
}
.legal-prose p {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}
.legal-prose ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.legal-prose li {
  margin-bottom: 0.5rem;
}
.legal-prose li::marker {
  color: var(--primary);
}
.legal-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-prose a:hover {
  color: var(--primary-strong);
}
.legal-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.legal-toc h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}
.legal-toc li {
  margin-bottom: 0.45rem;
  break-inside: avoid;
}
.legal-toc a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--primary);
}
.legal-contact-card {
  background: var(--primary-soft);
  border: 1px solid color-mix(in oklch, var(--primary) 18%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-top: 0.5rem;
}
.legal-contact-card p {
  margin-bottom: 0.35rem;
}

@media (max-width: 560px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-prose h2 {
    font-size: 1.25rem;
  }
}