/* Plyna landing — tokenlar ios/Plyna/DesignSystem/PlynaColors.swift ve
   plyna-marketing/src/theme.ts ile aynı. */

:root {
  --bg: #F4FAF8;
  --surface: #FFFFFF;
  --ink: #0E1B1F;
  --sub: #4B5B60;
  --muted: #6B7A7F;
  --border: #E1ECE9;
  --teal: #58C7B5;
  --teal-mid: #2E9C8B;
  --teal-deep: #0B5C57;
  --teal-dark: #052E2D;
  --mint: #DDF4EF;
  --coral: #FF6B5E;
  --gold: #F5B83D;
  --blue: #5B8CFF;
  --purple: #8B6BFF;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --radius: 28px;
  --shadow: 0 1px 2px rgba(5, 46, 45, .06), 0 12px 40px -12px rgba(5, 46, 45, .18);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }
em, .accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--teal-mid); }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--sub); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.lang { text-decoration: none; font-size: 13px; font-weight: 700; color: var(--sub); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; }
.lang:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 16px;
  border-radius: 999px; padding: 14px 24px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-store { background: var(--ink); color: #fff; padding: 11px 22px 11px 18px; }
.btn-store:hover { background: #000; box-shadow: 0 10px 28px -10px rgba(0,0,0,.45); }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: .75; }
.btn-store b { font-size: 18px; letter-spacing: -0.01em; }
.btn-ghost { color: var(--teal-deep); padding-inline: 8px; }
.btn-ghost:hover { color: var(--ink); }
.nav .btn-store { padding: 8px 16px; font-size: 14px; }

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -120px -20% auto; height: 720px; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 40%, rgba(88, 199, 181, .32), transparent 70%),
    radial-gradient(30% 40% at 12% 10%, rgba(91, 140, 255, .10), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--teal-deep);
  background: var(--mint); border-radius: 999px; padding: 6px 14px 6px 8px; margin-bottom: 22px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(88,199,181,.25); margin-left: 6px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
.hero h1 em { display: inline-block; padding-right: .06em; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--sub); max-width: 33ch; margin: 24px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal-mid); }

/* ── Phone ───────────────────────────────────────── */
.phone {
  position: relative; width: 100%; max-width: 330px; aspect-ratio: 660 / 1434;
  border-radius: 46px; padding: 10px; background: #0B1416;
  box-shadow: 0 0 0 1.5px #2A3A3D inset, 0 40px 80px -30px rgba(5, 46, 45, .55), 0 18px 36px -18px rgba(5, 46, 45, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .phone { transform: rotate(2.5deg); }

.chip {
  position: absolute; background: var(--surface); border-radius: 20px; padding: 14px 18px;
  box-shadow: var(--shadow); border: 1px solid var(--border); font-size: 13px; color: var(--sub);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.chip b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.chip .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.chip .ico svg { width: 20px; height: 20px; }
.chip-left { left: -4%; top: 56%; animation: float 6s ease-in-out infinite; }
.chip-right { right: -6%; top: 14%; animation: float 7s ease-in-out -2s infinite; }
.chip-bottom { right: 2%; bottom: 6%; animation: float 6.5s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ── Breakdown ───────────────────────────────────── */
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-mid); margin-bottom: 14px; }
.section h2 { font-size: clamp(36px, 4.6vw, 60px); }
.section-head p { font-size: 19px; color: var(--sub); margin-top: 18px; }

.breakdown { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.bd-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.bd-top .label { font-size: 15px; color: var(--muted); }
.bd-top .big { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.bd-top .left { text-align: right; }
.bd-top .left .big { color: var(--teal-mid); }
.bar { display: flex; height: 64px; border-radius: 18px; overflow: hidden; gap: 4px; }
.bar > div { flex: var(--w) 1 0; min-width: 0; border-radius: 6px; transform-origin: left; }
.reveal.in .bar > div { animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.reveal.in .bar > div:nth-child(2) { animation-delay: .12s; }
.reveal.in .bar > div:nth-child(3) { animation-delay: .24s; }
.reveal.in .bar > div:nth-child(4) { animation-delay: .36s; }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }
.bd-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.bd-legend div { border-top: 3px solid var(--c); padding-top: 12px; font-size: 14px; color: var(--muted); }
.bd-legend b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.c-fixed { --c: var(--blue); background: var(--blue); }
.c-debt  { --c: var(--purple); background: var(--purple); }
.c-daily { --c: var(--coral); background: var(--coral); }
.c-left  { --c: var(--teal); background: var(--teal); }
.sample { font-size: 12px; color: var(--muted); margin-top: 22px; }

/* ── Features ────────────────────────────────────── */
.features { display: grid; gap: 28px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 36px;
  padding: 56px 64px 0; overflow: hidden;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy { padding-bottom: 56px; }
.feature-copy h3 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 18px; }
.feature-copy p { color: var(--sub); font-size: 18px; }
.feature-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feature-copy li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.feature-copy li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E9C8B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--c, var(--teal-deep)); background: color-mix(in srgb, var(--c, var(--teal)) 14%, white); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.tag svg { width: 15px; height: 15px; }
.feature-shot { align-self: end; display: flex; justify-content: center; }
.feature-shot .phone { max-width: 300px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; aspect-ratio: 660 / 1000; }
.feature-shot .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Dark family card */
.feature.dark {
  background: radial-gradient(70% 90% at 90% 10%, #0F6A62 0%, transparent 60%), var(--teal-dark);
  border-color: transparent; color: #E9F6F3; padding-bottom: 56px;
}
.feature.dark .feature-copy p { color: #A9C9C4; }
.feature.dark em { color: var(--teal); }
.feature.dark .tag { --c: var(--teal); background: rgba(88,199,181,.14); }
.feature.dark li::before { background-color: rgba(88,199,181,.18); }
.family-visual { display: grid; gap: 14px; }
.fam-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 22px; padding: 22px 24px; }
.fam-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fam-card .muted { color: #8FB3AD; font-size: 14px; }
.fam-card .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.member + .member { border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--teal-dark); flex: none; }
.member .name { flex: 1; font-weight: 600; }
.member .meter { width: 110px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.member .meter i { display: block; height: 100%; background: var(--teal); border-radius: 6px; }
.member .val { width: 76px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Trust ───────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.trust-item .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 18px; }
.trust-item .ico svg { width: 24px; height: 24px; }
.trust-item h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.trust-item p { color: var(--sub); font-size: 15px; }

/* ── Gallery ─────────────────────────────────────── */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px; margin: 0 -20px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 230px; scroll-snap-align: center; }
.gallery .phone { max-width: none; border-radius: 36px; padding: 8px; }
.gallery .phone img { border-radius: 29px; }
.gallery figcaption { text-align: center; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--sub); }

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0 26px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--teal-mid); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sub); padding-bottom: 22px; margin-top: -6px; }

/* ── Final CTA ───────────────────────────────────── */
.final {
  position: relative; overflow: hidden; border-radius: 40px; text-align: center;
  padding: 96px 32px; color: #fff;
  background: radial-gradient(60% 80% at 50% 0%, #138377 0%, transparent 70%), var(--teal-dark);
}
.final img.icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); }
.final h2 { font-size: clamp(38px, 5vw, 66px); }
.final h2 em { color: var(--teal); }
.final p { color: #A9C9C4; font-size: 19px; margin: 18px auto 34px; max-width: 46ch; }
.final .btn-store { background: #fff; color: var(--ink); }
.final .btn-store:hover { background: #fff; box-shadow: 0 14px 34px -12px rgba(0,0,0,.6); }

/* ── Footer ──────────────────────────────────────── */
footer { padding: 56px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ── Reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .reveal.in .bar > div { animation: none; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .lang { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { padding-inline: 40px; }
  .feature { grid-template-columns: 1fr; padding: 40px 32px 0; gap: 32px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { padding-bottom: 0; }
  .feature.dark { padding-bottom: 32px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav .btn-store { display: none; }
  .hero-visual { padding-inline: 0; }
  .hero-visual .phone { max-width: 270px; }
  .chip { padding: 10px 13px; font-size: 12px; border-radius: 16px; }
  .chip b { font-size: 16px; }
  .chip .ico { width: 30px; height: 30px; border-radius: 9px; }
  .chip-left { left: 0; }
  .chip-right { right: 0; }
  .chip-bottom { display: none; }
  .breakdown { padding: 26px 20px; }
  .bar { height: 46px; border-radius: 14px; }
  .bd-legend { grid-template-columns: 1fr 1fr; }
  .bd-top .left { text-align: left; }
  .feature { padding: 32px 22px 0; border-radius: 28px; }
  .feature.dark { padding-bottom: 22px; }
  .fam-card { padding: 18px; }
  .member .meter { width: 60px; }
  .trust { grid-template-columns: 1fr; }
  .final { padding: 72px 22px; border-radius: 30px; }
  .gallery figure { width: 200px; }
}

/* ── Legal pages (tools/build-legal.py) ──────────── */
.legal { padding: 56px 0 40px; }
.legal .wrap { max-width: 780px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--teal-deep); }
.legal h1 { font-size: clamp(38px, 5vw, 56px); }
.legal-meta { color: var(--muted); font-size: 14px; margin: 14px 0 32px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 24px; margin-bottom: 40px; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 12px 0 0; padding-left: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--sub); }
.toc a:hover { color: var(--teal-deep); }
.legal-body { font-size: 16.5px; color: #26363B; }
.legal-body h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 14px; scroll-margin-top: 90px; }
.legal-body h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; margin: 26px 0 10px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin: 6px 0; }
.legal-body a { color: var(--teal-deep); text-underline-offset: 3px; }
.callout { background: var(--mint); border-radius: 18px; padding: 18px 22px; margin: 18px 0 22px; color: var(--teal-dark); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-body th { font-weight: 700; background: #F8FCFB; }
.legal-body tr:last-child td { border-bottom: 0; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(44px, 7vw, 80px); }
.notfound p { color: var(--sub); margin: 16px 0 28px; font-size: 18px; }
@media (max-width: 600px) {
  .toc ol { columns: 1; }
  .legal { padding-top: 36px; }
}
