/* Vaynote marketing site — Sage & Linen (docs/SAGE_LINEN_DESIGN.md).
   System fonts only: nothing render-blocking beyond this one stylesheet. */
:root {
  --linen: #f6f5ef;
  --linen-2: #efeee6;
  --surface: #fffefa;
  --sage: #d8e6da;
  --sage-2: #e8f0e9;
  --sage-mid: #89a18c;
  --primary: #37564b;
  --primary-2: #29463c;
  --ink: #1f2a26;
  --muted: #56625c;
  --line: #e2e3dc;
  --amber: #f3e6c8;
  --amber-ink: #6b4f16;
  --rose: #f6e3dd;
  --rose-ink: #8e3a31;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(31, 42, 38, 0.05), 0 12px 32px -12px rgba(31, 42, 38, 0.18);
  --shadow-lg: 0 2px 4px rgba(31, 42, 38, 0.04), 0 30px 60px -24px rgba(31, 42, 38, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--linen); color: var(--ink); font: 17px/1.6 var(--sans); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-2); }
:focus-visible { outline: 3px solid #2f6f5a; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.eyebrow { display: inline-block; font: 600 0.78rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); background: var(--sage-2); border: 1px solid var(--sage); padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 239, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 650 1.28rem/1 var(--sans); letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.97rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--sage-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav .lang { color: var(--muted); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em; }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary { color: #fff; background: var(--primary); }
.nav a.btn-primary:hover { color: #fff; background: var(--primary-2); }
.wordmark { font-weight: 700; }
.wordmark span { font-weight: 450; color: var(--muted); }
.site-footer .wordmark span { color: #a9b8af; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: 600 0.95rem var(--sans); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(55, 86, 75, 0.8); }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage-mid); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.94rem; }
.btn-store { background: #111; color: #fff; border-radius: 14px; padding: 9px 20px 9px 16px; min-height: 54px; gap: 12px; }
.btn-store:hover { background: #000; color: #fff; }
.btn-store svg { width: 26px; height: 26px; }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn-store small { font: 500 0.72rem var(--sans); letter-spacing: 0.02em; opacity: 0.9; }
.btn-store strong { font: 600 1.22rem var(--sans); letter-spacing: -0.01em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { font-size: 0.92rem; color: var(--muted); margin-top: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(137, 161, 140, 0.32), rgba(137, 161, 140, 0)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-bottom: 30px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(31, 42, 38, 0.16)); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 40px 0 0; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; flex: none; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 28px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font: 700 1.05rem var(--sans); margin-bottom: 18px; }
.step svg.step-icon { width: 100%; height: 120px; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: 0 1px 0 rgba(31, 42, 38, 0.02); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--sage-2); border: 1px solid var(--sage); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: -0.005em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: center; }
.feature.wide svg.mini-art { width: 150px; height: auto; }

.security { background: var(--primary); color: #e9f1eb; border-radius: 36px; padding: 64px; position: relative; overflow: hidden; }
.security h2 { color: #fff; }
.security .eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #e9f1eb; }
.security .lead { color: #d3e1d7; }
.security a { color: #fff; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.sec-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 24px; }
.sec-card svg { width: 30px; height: 30px; margin-bottom: 14px; }
.sec-card h3 { color: #fff; font-family: var(--sans); font-size: 1.05rem; font-weight: 650; }
.sec-card p { color: #d3e1d7; font-size: 0.95rem; margin: 0; }
.sec-more { display: inline-flex; margin-top: 30px; font-weight: 600; }
.security-art { position: absolute; right: -70px; bottom: -90px; width: 360px; opacity: 0.07; pointer-events: none; }

.languages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.languages li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.92rem; }

/* Pricing */
.page-hero { padding: 64px 0 8px; }
.pricing-body { padding-top: 24px; }
.controls { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: center; margin: 8px 0 40px; }
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segmented label { position: relative; cursor: pointer; display: flex; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 0.94rem var(--sans); color: var(--muted); }
.segmented input:checked + span { background: var(--primary); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid #2f6f5a; outline-offset: 2px; }
.save { background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 3px 8px; font-size: 0.75rem; line-height: 1.2; }
.segmented span.save { height: auto; padding: 3px 8px; color: var(--amber-ink); font-size: 0.75rem; }
.segmented input:checked + span .save { background: rgba(255, 255, 255, 0.2); color: #fff; }
fieldset.segmented { margin: 0; min-width: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -13px; left: 30px; background: var(--primary); color: #fff; font: 600 0.78rem/1 var(--sans); padding: 7px 12px; border-radius: 999px; letter-spacing: 0.02em; }
.badge.soft { background: var(--amber); color: var(--amber-ink); }
.plan h2 { font-family: var(--sans); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.plan .tag { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-height: 60px; }
.price .amount { font: 650 2.7rem/1 var(--serif); letter-spacing: -0.02em; }
.price .per { color: var(--muted); font-weight: 500; }
.price-sub { color: var(--muted); font-size: 0.9rem; min-height: 1.6em; margin: 6px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
/* Billing period and currency are radio buttons; CSS shows the matching prices (no script needed). */
.pricing:has(#bill-monthly:checked) .a, .pricing:has(#bill-annual:checked) .m { display: none; }
.pricing:has(#cur-GBP:checked) .cur:not(.cur-GBP), .pricing:has(#cur-EUR:checked) .cur:not(.cur-EUR), .pricing:has(#cur-TRY:checked) .cur:not(.cur-TRY) { display: none; }
.pricing-notes { max-width: 820px; margin: 44px auto 0; color: var(--muted); font-size: 0.95rem; padding-left: 1.2em; }
.pricing-notes li { margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow 0.2s ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font: 600 1.06rem/1.4 var(--sans); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 26px 22px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* Security page */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin-top: 56px; }
.flow { list-style: none; padding: 0; margin: 0; counter-reset: flow; display: grid; gap: 14px; }
.flow li { counter-increment: flow; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 70px; }
.flow li::before { content: counter(flow); position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 10px; background: var(--sage-2); border: 1px solid var(--sage); color: var(--primary); font: 700 0.95rem/30px var(--sans); text-align: center; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--linen-2); }
tr:last-child td { border-bottom: 0; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 4px; }
.callout { background: var(--amber); color: #3e2f0c; border-radius: var(--radius); padding: 24px 26px; }
.callout h2 { margin-top: 0; font-size: 1.35rem; color: #3e2f0c; }
.callout p { margin: 0; }

/* Contact + final CTA */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 48px; }
.contact .btn { white-space: nowrap; }
.contact .btn svg { width: 20px; height: 20px; }
.contact .mail { font: 600 1.15rem var(--sans); word-break: break-all; }
.final { text-align: center; padding: 96px 0; background: radial-gradient(60% 90% at 50% 0%, var(--sage) 0%, rgba(216, 230, 218, 0) 70%); }
.final .lead { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; margin-top: 26px; }

/* Footer */
.site-footer { background: #1d2723; color: #c9d4cd; padding: 64px 0 40px; font-size: 0.94rem; }
.site-footer a { color: #e7efe9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font: 650 0.8rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #9fb1a6; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 44px; padding-top: 24px; display: grid; gap: 8px; color: #a9b8af; font-size: 0.86rem; }

/* Not found */
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* Responsive */
@media (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 36px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 520px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; padding: 32px 26px; }
  .security { padding: 40px 26px; border-radius: 28px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--linen); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; }
  section { padding: 64px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .features, .sec-grid, .foot-grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .feature.wide svg.mini-art { display: none; }
  .cta-row .btn { width: 100%; }
  .cta-row .btn-store { width: auto; }
  .trust { gap: 10px 18px; margin-top: 28px; }
  .segmented span { padding: 9px 12px; }
  .flow li { padding-left: 62px; }
}
.page-hero + section { padding-top: 32px; }
.segmented span.save span { display: inline; height: auto; padding: 0; color: inherit; font: inherit; background: none; }
