/* Maine Winters — Extension landing system "Coastal Almanac"
   Self-contained editorial system shared by all 21 Chrome-extension pages.
   Each page links this file and may set a per-extension accent via
   `<body style="--ac: <oklch>">`. Default accent is spruce. See DESIGN.md. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,360;9..144,420;9..144,500;9..144,600&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --paper:     oklch(96.5% 0.006 95);
  --paper-2:   oklch(93.8% 0.008 92);
  --paper-3:   oklch(90.5% 0.010 92);
  --ink:       oklch(25% 0.018 250);
  --ink-soft:  oklch(46% 0.018 250);
  --ink-faint: oklch(58% 0.014 250);
  --spruce:      oklch(46% 0.082 168);
  --spruce-deep: oklch(38% 0.072 168);
  --line:   oklch(85% 0.010 250);
  --line-2: oklch(76% 0.012 250);

  /* Per-extension accent — pages may override --ac on <body>. */
  --ac: var(--spruce);
  --ac-deep: var(--spruce-deep);
  --ac-tint: oklch(93% 0.030 168);

  --font-d: 'Fraunces', Georgia, serif;
  --font-b: 'Hanken Grotesk', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;
  --r: 6px; --r-lg: 10px; --r-xl: 14px;
  --t: 0.28s cubic-bezier(0.22,1,0.36,1);
  --t-sl: 0.55s cubic-bezier(0.22,1,0.36,1);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b); background: var(--paper); color: var(--ink);
  line-height: 1.62; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--ac); color: var(--paper); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-block; font-family: var(--font-m); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); }
.serif { font-family: var(--font-d); font-weight: 420; letter-spacing: -0.018em; line-height: 1.04; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-b); font-weight: 600; font-size: 0.95rem; border-radius: var(--r); cursor: pointer; border: 1px solid transparent; padding: 14px 24px; transition: transform var(--t), background var(--t), border-color var(--t), color var(--t); white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ac-deep); transform: translateY(-2px); }
.btn-accent { background: var(--ac); color: var(--paper); }
.btn-accent:hover { background: var(--ac-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Nav */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; background: oklch(96.5% 0.006 95 / 0.8); backdrop-filter: blur(14px) saturate(120%); border-bottom: 1px solid transparent; transition: border-color var(--t), background var(--t); }
.nav.scrolled { border-bottom-color: var(--line); background: oklch(96.5% 0.006 95 / 0.93); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 15px 32px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--ink); }
.nav-logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav-logo .dot { color: var(--ac); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color var(--t); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-weight: 600; font-size: 0.86rem; color: var(--paper); background: var(--ink); padding: 10px 18px; border-radius: var(--r); transition: background var(--t), transform var(--t); }
.nav-cta:hover { background: var(--ac-deep); transform: translateY(-1px); }

/* Hero */
.hero { padding: 176px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-m); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 100px; margin-bottom: 30px; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.hero h1 { font-family: var(--font-d); font-weight: 380; font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 0.99; letter-spacing: -0.025em; color: var(--ink); }
.hero h1 .hl { color: var(--ac); font-style: italic; font-weight: 500; }
.hero .sub { margin-top: 26px; font-size: 1.16rem; line-height: 1.58; color: var(--ink-soft); max-width: 52ch; }
.hero-ticks { margin-top: 26px; display: flex; flex-direction: column; gap: 11px; }
.hero-ticks li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.96rem; color: var(--ink); }
.tick { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ac-tint); color: var(--ac-deep); display: grid; place-items: center; font-size: 0.7rem; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero-note { margin-top: 18px; font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--ink-faint); }

/* Hero visual — a quiet editorial panel (browser frame) */
.frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 2px 4px oklch(25% 0.02 250/0.05), 0 40px 80px -42px oklch(25% 0.05 250/0.4); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.frame-bar .o { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame-url { flex: 1; margin-left: 10px; font-family: var(--font-m); font-size: 0.7rem; color: var(--ink-faint); padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.frame-body { padding: 26px; min-height: 320px; }
.kicker { font-family: var(--font-m); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac); margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 10px; background: var(--paper); }
.row.lit { border-color: var(--ac); background: var(--ac-tint); }
.row .ico { font-size: 1.2rem; }
.row .grow { flex: 1; }
.row .t1 { font-family: var(--font-m); font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.row .t2 { font-size: 0.74rem; color: var(--ink-soft); margin-top: 2px; }
.row .val { font-family: var(--font-d); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.big-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.big-stat .n { font-family: var(--font-d); font-weight: 460; font-size: 2.4rem; letter-spacing: -0.02em; color: var(--ink); }
.big-stat .was { font-size: 0.9rem; color: var(--ink-faint); text-decoration: line-through; }
.big-stat-note { font-family: var(--font-m); font-size: 0.72rem; color: var(--ac-deep); }

/* Section scaffolding */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--font-d); font-weight: 420; font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.018em; line-height: 1.04; color: var(--ink); margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 1.06rem; color: var(--ink-soft); max-width: 58ch; line-height: 1.6; }
.section-head.center p { margin-inline: auto; }

/* Feature grid (editorial, hairline-divided) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.feature { position: relative; padding: 38px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--t); }
.features .feature:nth-child(2n) { border-right: none; }
.features .feature:nth-last-child(-n+2) { border-bottom: none; }
.feature:hover { background: var(--paper-2); }
.feature .fnum { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ac); }
.feature h3 { font-family: var(--font-d); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); margin: 14px 0 9px; }
.feature p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.55; }
.features.cols-4 { grid-template-columns: repeat(4, 1fr); }
.features.cols-4 .feature:nth-child(2n) { border-right: 1px solid var(--line); }
.features.cols-4 .feature:nth-child(4n) { border-right: none; }
.features.cols-4 .feature:nth-last-child(-n+4) { border-bottom: none; }

/* Pricing (us vs them) */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; align-items: stretch; }
.price-col { padding: 40px; background: var(--paper); }
.price-col.them { background: var(--paper-2); border-right: 1px solid var(--line); }
.price-label { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.price-col.us .price-label { color: var(--ac); }
.price-amt { font-family: var(--font-d); font-weight: 460; font-size: 2.8rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.price-amt .per { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-b); font-weight: 500; }
.price-amt.struck { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--line-2); }
.price-sub { font-family: var(--font-m); font-size: 0.74rem; color: var(--ink-faint); margin: 8px 0 24px; }
.price-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.price-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.94rem; color: var(--ink-soft); }
.price-list li .y { color: var(--ac); flex-shrink: 0; }
.price-list li .n { color: var(--ink-faint); flex-shrink: 0; }
.price-col.us .price-list li { color: var(--ink); }
.price-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.price-head img { width: 42px; height: 42px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); padding: 7px; }
.price-head .pn { font-family: var(--font-d); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.price-head .pt { font-size: 0.8rem; color: var(--ac-deep); margin-top: 1px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; background: var(--paper); overflow: hidden; transition: border-color var(--t); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; font-family: var(--font-d); font-weight: 500; font-size: 1.08rem; color: var(--ink); }
.faq summary .pm { font-family: var(--font-m); font-size: 1.4rem; font-weight: 400; color: var(--ink-faint); transition: transform var(--t); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; font-size: 0.96rem; color: var(--ink-soft); line-height: 1.65; }

/* Closing CTA */
.cta { padding: 120px 0; border-top: 1px solid var(--line); text-align: center; }
.cta h2 { font-family: var(--font-d); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.03; letter-spacing: -0.02em; color: var(--ink); max-width: 18ch; margin-inline: auto; }
.cta h2 .hl { color: var(--ac); font-style: italic; font-weight: 500; }
.cta p { margin-top: 22px; font-size: 1.1rem; color: var(--ink-soft); }
.cta .cta-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 340px; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col strong { display: block; font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; transition: color var(--t); }
.footer-col a:hover { color: var(--ac); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; padding-top: 28px; font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--ink-faint); flex-wrap: wrap; }

/* Reveal */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity var(--t-sl), transform var(--t-sl); }
.fade-up.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid, .pricing { grid-template-columns: 1fr; }
  .pricing .price-col.them { border-right: none; border-bottom: 1px solid var(--line); }
  .features, .features.cols-4 { grid-template-columns: 1fr; }
  .features .feature, .features.cols-4 .feature { border-right: none !important; }
  .hero-visual { display: none; }
}
@media (max-width: 680px) {
  .wrap, .nav-in { padding-inline: 22px; }
  .section, .cta { padding: 76px 0; }
  .hero { padding-top: 140px; }
  .nav-links { display: none; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; }
}
