/* BinderTastic marketing site. Tokens mirror the app's design system (Apps/iOS/BinderTastic/Design). */
:root {
  --paper: #fbfaf7;
  --chrome: #f4f2ee;
  --desk: #e9e6e0;
  --hairline: #dcd8d0;
  --ink: #1d1d1f;
  --ink-2: #5f5c56;
  --ink-3: #8a867f;
  --accent: #2f5d8c;
  --accent-ink: #ffffff;
  --night: #141416;
  --night-2: #1e1e21;
  --night-ink: #f2f2f2;
  --night-ink-2: #a8a8ad;
  --tab-navy: #24476e;
  --tab-forest: #2e5e3e;
  --tab-burgundy: #7a2436;
  --tab-slate: #4a5563;
  --tab-ochre: #9a6b12;
  --tab-teal: #1f6b6b;
  --tab-plum: #5b3a6e;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; grid-template-rows: repeat(3, 5px); gap: 2px; width: 22px; }
.brand-mark span { display: block; height: 5px; border-radius: 0 3px 3px 0; }
.brand-mark span:nth-child(1) { background: var(--tab-navy); width: 16px; }
.brand-mark span:nth-child(2) { background: var(--tab-forest); width: 22px; }
.brand-mark span:nth-child(3) { background: var(--tab-burgundy); width: 13px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { background: var(--chrome); }
.btn-light { background: #fff; color: var(--ink); }
.btn-large { height: 52px; padding: 0 26px; font-size: 16px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tab-forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tab-forest) 18%, transparent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); margin: 18px auto 20px; max-width: 17ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 40rem; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin: 32px 0 14px; flex-wrap: wrap; }
.platforms { font-size: 14px; color: var(--ink-3); }
.hero-visual { margin: 56px auto 0; max-width: 980px; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 12% -6% -4% -6%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--tab-navy) 14%, transparent), transparent 70%);
}

/* Device frames */
.ipad {
  background: #1b1b1d; padding: 14px; border-radius: 34px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(20,20,30,.45), 0 18px 36px -18px rgba(20,20,30,.35);
}
.ipad img { border-radius: 22px; }
.ipad.portrait { max-width: 560px; margin-inline: auto; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 46rem; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 16px; }
.section-head p { color: var(--ink-2); font-size: 19px; margin: 0; }
.kicker { display: block; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

.proof { padding: 36px 0; border-block: 1px solid var(--hairline); background: var(--chrome); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.proof-grid strong { display: block; font-family: var(--serif); font-size: 30px; letter-spacing: -0.02em; }
.proof-grid span { font-size: 14px; color: var(--ink-2); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.feature-copy p { color: var(--ink-2); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--tab-forest) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232e5e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--desk); color: var(--ink-2); vertical-align: middle; margin-left: 6px; letter-spacing: .02em; }
.feature-visual { position: relative; }
.feature-visual .shot { border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(20,20,30,.4), 0 0 0 1px var(--hairline); overflow: hidden; background: #fff; }
.feature-visual .shot.narrow { max-width: 440px; margin-inline: auto; }

.tabs-deco { display: flex; flex-direction: column; gap: 6px; position: absolute; right: -18px; top: 28px; }
.tabs-deco span { display: block; width: 44px; height: 30px; border-radius: 0 10px 10px 0; box-shadow: 0 6px 14px -6px rgba(0,0,0,.3); }

/* Night band */
.night { background: var(--night); color: var(--night-ink); }
.night .section-head p, .night p { color: var(--night-ink-2); }
.night .kicker { color: #8fb5de; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--night-2); border: 1px solid #2c2c30; border-radius: var(--radius); padding: 28px; }
.pillar h3 { font-family: var(--sans); font-size: 18px; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--night-ink); }
.pillar p { margin: 0; font-size: 15.5px; }
.pillar .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; background: #26262b; color: #8fb5de; }
.night .link-arrow { color: #fff; font-weight: 600; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ink); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); position: relative; }
.plan.featured .badge { position: absolute; top: -12px; left: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-family: var(--sans); font-size: 19px; letter-spacing: -0.01em; }
.plan .price { font-family: var(--serif); font-size: 40px; margin: 14px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-family: var(--sans); font-size: 15px; color: var(--ink-2); letter-spacing: 0; }
.plan .for { color: var(--ink-2); font-size: 15px; min-height: 48px; margin: 6px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 15px; }
.plan ul li::before { content: "—"; color: var(--ink-3); margin-right: 8px; }
.plan .btn { margin-top: auto; }
.compare-wrap { margin-top: 40px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; }
.compare caption { caption-side: top; text-align: left; font-weight: 600; font-size: 16px; margin-bottom: 12px; color: var(--ink); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--sans); font-size: 15px; font-weight: 600; background: var(--chrome); }
.compare tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.compare td { color: var(--ink-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.fineprint { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 26px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* Access form */
.cta-band { background: linear-gradient(180deg, var(--chrome), var(--desk)); }
.form-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--hairline); border-radius: 22px; padding: 40px; box-shadow: 0 30px 70px -40px rgba(0,0,0,.35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font: 16px/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 10px; padding: 11px 12px; width: 100%;
}
select { -webkit-appearance: none; appearance: none; height: 46px; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--ink-3, #8a867f); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.consent { flex-direction: row; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); font-weight: 400; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--ink-2); }
.form-status.ok { color: var(--tab-forest); font-weight: 600; }
.form-status.error { color: var(--tab-burgundy); font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: 64px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: var(--night-ink); font-size: 14px; margin: 0 0 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--night-ink-2); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid #2c2c30; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* Cookie notice (EU / UK transparency) */
.cookie-notice {
  position: fixed; inset: auto 0 0; z-index: 200;
  background: color-mix(in srgb, var(--night) 94%, transparent);
  color: var(--night-ink-2);
  border-top: 1px solid #3a3a40;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0,0,0,.35);
}
.cookie-notice-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-notice p { margin: 0; font-size: 14px; line-height: 1.45; max-width: 52rem; color: var(--night-ink-2); }
.cookie-notice a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice-actions { display: flex; gap: 10px; flex-shrink: 0; }
body.cookie-notice-open { padding-bottom: 88px; }
.prose .cookie-table { width: 100%; margin: 16px 0 24px; font-size: 14px; }
.prose .cookie-table th, .prose .cookie-table td { vertical-align: top; }
.prose .cookie-table code { font-size: 13px; }

/* Long-form pages (security, privacy) */
.page-hero { padding: 88px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 16px; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.prose h2 { font-size: 30px; margin: 48px 0 14px; }
.prose h3 { font-family: var(--sans); font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.note { background: var(--chrome); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 18px; font-size: 15px; color: var(--ink-2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .feature { gap: 44px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .site-header.open .nav-links, .site-header.open .nav-cta { display: flex; flex-direction: column; width: 100%; margin: 12px 0 0; gap: 14px; align-items: flex-start; }
  section { padding: 72px 0; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature.reverse .feature-copy { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .tabs-deco { display: none; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .ipad { padding: 8px; border-radius: 22px; }
  .ipad img { border-radius: 15px; }
}

/* Utilities (no inline styles: the CSP allows only this stylesheet) */
.footer-tagline { margin-top: 14px; max-width: 26rem; }
.center-actions { text-align: center; margin-top: 40px; }
.flush-top { padding-top: 0; }
