/* Shared landing page styles, identical on all four sites.
   Each site adds its own assets/theme.css (colour palette + site-specific parts).
   Edit this file, then copy it into every site's assets folder.
   No web fonts, no trackers: system fonts only. */

:root {
  --rec: #e05252;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 23, 31, .05), 0 12px 32px rgba(20, 23, 31, .08);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::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(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Icons (inline SVG sprite; strokes inherit into <use>) */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(var(--primary-rgb), .22); }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent-ink);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); margin: 22px 0; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 33em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.micro { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* Proof strip */
.proof { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; }
.proof li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.proof .i { width: 20px; height: 20px; color: var(--accent-ink); }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
h2 { font-size: clamp(30px, 4vw, 46px); max-width: 19em; }
.section-intro { font-size: 18px; color: var(--muted); max-width: 38em; margin: 18px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 22px; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.icon-soft { background: rgba(var(--accent-rgb), .15); color: var(--accent-ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { counter-increment: step; content: counter(step); display: block; font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 22px; margin: 16px 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Comparison */
.compare { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.compare thead th.us { color: var(--primary); }
.compare tbody th { font-weight: 600; width: 38%; }
.compare td { color: var(--muted); }
.compare td.us { color: var(--ink); font-weight: 600; background: rgba(var(--accent-rgb), .09); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare-4 tbody th { width: 28%; }
.compare-4 th, .compare-4 td { font-size: 15px; }
.footnote { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Encryption (dark band) */
.section-dark { background: var(--primary); color: #fff; }
.section-dark .kicker { color: var(--accent-light); }
.section-dark h2 { color: #fff; }
.section-dark .section-intro { color: rgba(255, 255, 255, .76); }
.section-dark .icon { background: rgba(255, 255, 255, .08); color: var(--accent-light); border: 1px solid rgba(255, 255, 255, .14); }
.enc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.enc-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.enc-points li { display: flex; align-items: flex-start; gap: 16px; }
.enc-points .icon { flex: none; }
.enc-points h3 { font-size: 20px; color: #fff; margin: 2px 0 4px; }
.enc-points p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .72); }
.cipher-card { margin: 0; background: var(--primary-dark); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.cipher-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.plain { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.45; color: #fff; }
.garbled { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.75; color: var(--accent-light); overflow-wrap: anywhere; }
.cipher-arrow { display: flex; align-items: center; gap: 10px; margin: 22px 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent-light); }
.cipher-arrow::before, .cipher-arrow::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .16); }
.cipher-arrow .i { width: 16px; height: 16px; }
.cipher-card figcaption { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* Pricing: one plan (.pricing) or two plans side by side (.plans, styled equally
   so the test measures real preference) */
.pricing { display: grid; justify-items: center; margin-top: 44px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; margin-top: 44px; }
.price-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.plans .price-card { max-width: none; display: flex; flex-direction: column; }
.plans .checklist { flex: 1; }
.price-card h3 { font-size: 24px; }
.price { font-family: var(--serif); font-size: 56px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin: 16px 0 0; }
.price small { font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
/* Four storage tiers (Nestalbum) */
.plans.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; margin-left: auto; margin-right: auto; }
.plans.plans-4 .price-card { padding: 26px 22px; }
.plans.plans-4 .price { font-size: 40px; }
.plans.plans-4 .plan-sub { flex: 1; margin-bottom: 22px; }
.plan-features { max-width: 1040px; margin: 20px auto 0; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-features h3 { margin: 0; font-size: 20px; }
.plan-features .checklist { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 14px 0 0; }
@media (max-width: 960px) { .plans.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans.plans-4 { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; }
.checklist .i { width: 20px; height: 20px; color: var(--accent-ink); margin-top: 3px; }
.price-note { font-size: 14px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.plans-note { max-width: 520px; margin: 22px auto 0; }
.text-link { display: block; text-align: center; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--primary); }

/* FAQ */
.faq { max-width: 800px; margin-top: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--accent-ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 44em; }

/* Final call to action */
.final { background: var(--primary); color: #fff; text-align: center; padding: 96px 0; }
.final h2 { color: #fff; margin: 0 auto; }
.final p { color: rgba(255, 255, 255, .78); font-size: 18px; margin: 16px auto 30px; max-width: 32em; }
.final .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.final .btn-primary:hover { background: var(--surface-2); }
.final .micro { color: rgba(255, 255, 255, .6); }

/* Footer */
.site-footer { padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Simple pages (privacy, legal, thanks, 404) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 12px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page p, .page li { color: #3a404c; }
.page .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 20px; }
.thanks { text-align: center; padding: 96px 0; }
.thanks .check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 28px; background: var(--primary); color: #fff; }
.thanks .check .i { width: 34px; height: 34px; }
.thanks p { color: var(--muted); font-size: 18px; max-width: 30em; margin: 16px auto 0; }
.thanks .cta-row { justify-content: center; margin-top: 32px; }

/* Guides (articles) */
.article { max-width: 760px; }
.crumbs { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(32px, 4.6vw, 46px); margin: 0 0 12px; }
.article .meta { margin: 0 0 28px; font-size: 15px; color: var(--muted); }
.article .lede { font-size: 20px; line-height: 1.6; color: var(--ink); }
.article h2 { font-size: 28px; margin: 44px 0 12px; }
.article h3 { font-size: 21px; margin: 28px 0 8px; }
.article p, .article li { font-size: 18px; line-height: 1.7; color: #333a45; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.article a { color: var(--primary); }
.table-wrap { overflow-x: auto; margin: 22px 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article th, .article td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article thead th { background: var(--surface-2); font-size: 14px; }
.callout { margin: 24px 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; }
.callout p { margin: 0; }
.cta-box { margin: 48px 0 0; padding: 30px; border-radius: 20px; background: var(--primary); color: #fff; }
.article .cta-box h2 { margin: 0 0 8px; font-size: 26px; color: #fff; }
.article .cta-box p { margin: 0 0 20px; font-size: 17px; color: rgba(255, 255, 255, .82); }
.cta-box .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-box .btn-primary:hover { background: var(--surface-2); }
.sources { margin-top: 40px; }
.article .sources h2, .article .related h2 { font-size: 20px; margin: 0 0 8px; }
.article .sources li, .article .sources p { font-size: 15px; }
.related { margin-top: 40px; }
.article .guide-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.article .guide-list li { margin: 0; }
.guide-list a { display: block; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.guide-list a:hover { border-color: var(--line-strong); }
.article .guide-list h2 { max-width: none; margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.article .guide-list p { margin: 0; font-size: 16px; color: var(--muted); }

@media print {
  .site-header, .site-footer, .cta-box, .related, .crumbs { display: none; }
  body { background: #fff; }
}

/* Phone mockup (decorative). Site-specific screen content lives in each theme.css. */
.phone {
  position: relative; width: min(310px, 82vw); aspect-ratio: 9 / 19; margin: 0 auto;
  border-radius: 48px; background: #0e1118; padding: 12px;
  box-shadow: 0 34px 70px rgba(var(--primary-rgb), .28), inset 0 0 0 2px #2b3242;
}
.phone::before { content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0e1118; z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 37px; background: #fbfaf7; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 58px 15px 16px; font-size: 13px; line-height: 1.45; }
.status { position: absolute; top: 17px; left: 30px; right: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.status .i { width: 14px; height: 14px; stroke-width: 2.4; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.folder { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.folder .i { width: 16px; height: 16px; color: var(--accent-ink); }
.lock-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(var(--accent-rgb), .15); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; }
.lock-chip .i { width: 11px; height: 11px; stroke-width: 2.6; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; color: #3b4150; }
.panel-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.panel-label .i { width: 11px; height: 11px; stroke-width: 2.6; }
.panel ul { margin: 0; padding-left: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); font-size: 10.5px; font-weight: 700; }
.chip .i { width: 11px; height: 11px; stroke-width: 2.6; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--primary-dark); font-size: 12px; font-weight: 800; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .enc-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards, .cards-4, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links .hide-sm { display: none; }
  .section { padding: 72px 0; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 64px; }
  .cards, .cards-4, .steps { grid-template-columns: 1fr; }
  .proof ul { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 20px 16px; }
  .proof li { flex-direction: column; text-align: center; gap: 6px; font-size: 14px; }
  .compare th, .compare td { padding: 12px 12px; font-size: 14px; }
  .compare thead th { font-size: 11px; letter-spacing: .05em; }
  .compare-4 th, .compare-4 td { padding: 10px 8px; font-size: 13px; }
  .compare-4 thead th { font-size: 10px; letter-spacing: .03em; }
  .price-card { padding: 26px; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
