/* ============================================================================
   Learn AI with Hugo — newsletter home + lead-magnet funnel
   Shared design system. White canvas · navy ink · Sky-blue accents ·
   ABC Diatype throughout. Watercolor coastal collage + Mac desktop motifs.
   (Alternate Oat + Monday Blue palette specced in "_source/Colour/LOCKED — Oat + Monday Blue.md".)
   ============================================================================ */

/* ---- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "ABC Diatype";
  src: url("/assets/fonts/ABCDiatype-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "ABC Diatype";
  src: url("/assets/fonts/ABCDiatype-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "ABC Diatype";
  src: url("/assets/fonts/ABCDiatype-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "ABC Diatype Mono";
  src: url("/assets/fonts/ABCDiatypeMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --bg:          #ffffff;   /* oat milk canvas */
  --ink:         #10203a;   /* headings — deep navy */
  --ink-2:       #24344f;   /* strong body / icons */
  --muted:       #4f5b73;   /* subheads — blue-grey, AA on oat canvas */
  --muted-2:     #7a8296;   /* faint meta / placeholders */

  --blue:        #75b4db;   /* brand accent — Monday Blue */
  --blue-deep:   #75b4db;   /* hover / pressed / links */
  --blue-ink:    #17408f;   /* deep blue for text-on-light where legibility matters */
  --blue-soft:   #a9c2f2;   /* soft dusty-blue fill — for use ON dark or white surfaces */
  --blue-tint:   rgba(117, 180, 219, 0.10);   /* faint accent wash on white */
  --blue-ring:   rgba(117, 180, 219, 0.30);   /* focus ring — reads on the oat canvas */

  --line:        rgba(29, 45, 80, 0.12);   /* hairline divider on oat */
  --line-2:      rgba(29, 45, 80, 0.18);   /* stronger edge — inputs, chips */
  --card:        #fffdf9;   /* near-white card, lifts off the oat canvas */
  --surface:     #fffdf7;   /* near-white input/surface */

  --font-display: "ABC Diatype", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;   /* headings only */
  --font-sans: "ABC Diatype", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "ABC Diatype Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 600px;
  --radius:    14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 58, 0.05), 0 1px 3px rgba(16, 32, 58, 0.07);
  --shadow-md: 0 14px 34px -14px rgba(16, 32, 58, 0.28);
  --shadow-btn: 0 6px 18px -6px rgba(117, 180, 219, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* Subtle, barely-there background texture (AI/grid aesthetic, very low contrast) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(125% 85% at 50% -20%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 55%);
}

/* ---- Layout --------------------------------------------------------------- */
.page {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 40px;
}
.hero {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Eyebrow badge -------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 1px;          /* small brand square, echoes the headline period */
  background: var(--blue);
}

/* ---- Headline + accent ---------------------------------------------------- */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}
/* Underlined accent word(s) */
.accent {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.accent__line {
  display: block;          /* blue marker under the accent phrase */
  position: absolute;
  left: -0.03em;
  right: -0.03em;
  bottom: 0.01em;          /* chunky marker across the whole phrase, sat low */
  height: 0.15em;
  background: var(--blue);
  border-radius: 3px;
  z-index: -1;             /* behind the text — highlighter / marker look */
  transform: scaleX(1);
  transform-origin: left center;
}
/* Small black square full stop at the end of the headline (Ally-style) */
.headline .dot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.015em;
  background: var(--ink);
  border-radius: 1px;
  vertical-align: baseline;
  transform-origin: center bottom;
}

/* ---- Subhead -------------------------------------------------------------- */
.subhead {
  margin: 22px auto 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.62;
}

/* ---- Access fallback note (sits under the "Open the guide" button) --------- */
.fineprint {
  margin: 16px auto 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  line-height: 1.55;
}
.fineprint a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Form ----------------------------------------------------------------- */
.form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin: 34px auto 0;
}
.form__input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.form__input::placeholder { color: var(--muted-2); }
.form__input:focus {
  border-color: var(--blue-deep);
  background: #fffdf7;
  box-shadow: 0 0 0 4px var(--blue-ring);
}
.form__input:disabled { opacity: 0.6; }

.btn {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover { background: #1c3350; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(16, 32, 58, 0.55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { cursor: default; opacity: 0.75; transform: none; box-shadow: none; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---- Microcopy ------------------------------------------------------------ */
.microcopy {
  margin: 16px auto 0;
  max-width: 42ch;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---- Form status (error) -------------------------------------------------- */
.form-status {
  margin: 12px auto 0;
  min-height: 1em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #c0392b;
}

/* ---- Locked guide preview (branded — not Remy's) -------------------------- */
.preview {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 52px auto 0;
  aspect-ratio: 4 / 4.4;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: rotate(-1deg);   /* tilted-collage language, matches the compare cards */
}
.preview__doc {
  position: absolute;
  inset: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  filter: blur(3.5px);
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}
.preview__mark {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: var(--blue);
  margin-bottom: 6px;
}
.preview__doc .title { height: 16px; border-radius: 4px; background: #d6d9df; }
.preview__doc .title.w1 { width: 82%; }
.preview__doc .title.w2 { width: 58%; }
.preview__doc .line { height: 9px; border-radius: 3px; background: #eceef1; }
.preview__doc .line.w-100 { width: 100%; }
.preview__doc .line.w-90 { width: 90%; }
.preview__doc .line.w-85 { width: 85%; }
.preview__doc .line.w-70 { width: 70%; }
.preview__lock {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.preview__lock-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--ink);
  border-radius: 9px;
  box-shadow: 0 10px 22px -10px rgba(10, 12, 17, 0.45);
}
.preview__lock-badge svg { width: 20px; height: 20px; color: var(--blue-soft); }
.preview__lock-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  padding: 5px 11px;
  border-radius: 6px;
}

/* ---- Access page bits ----------------------------------------------------- */
.cta-wrap { margin: 34px auto 0; width: 100%; max-width: 320px; }
.btn--lg { padding: 16px 24px; font-size: 13px; }

.callout {
  width: 100%;
  max-width: 460px;
  margin: 44px auto 0;
  text-align: left;
  background: #fffdf9;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
}
.callout__icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--blue-tint);
  color: var(--blue-deep);
}
.callout__icon svg { width: 18px; height: 18px; }
.callout__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2px 0 6px;
}
.callout__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- Footer --------------------------------------------------------------- */
.footer {
  flex-shrink: 0;
  width: 100%;
  padding: 40px 24px 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink-2);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.socials a:hover { color: var(--blue-deep); border-color: var(--blue); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.copyright {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-align: center;
}
.footer__issues {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__issues:hover { color: var(--blue-deep); border-color: var(--blue-deep); }

/* ---- Motion staging ------------------------------------------------------- */
/* Only hide pre-animation when JS is active; never trap content invisible. */
.js [data-animate] { opacity: 0; will-change: transform, opacity; }
.js [data-accent-line] { transform: scaleX(0); }
.js [data-dot] { transform: scale(0); }

@media (prefers-reduced-motion: reduce) {
  .js [data-animate] { opacity: 1 !important; transform: none !important; }
  .js [data-accent-line] { transform: scaleX(1) !important; }
  .js [data-dot] { transform: scale(1) !important; }
  .btn, .form__input, .socials a { transition: none !important; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 520px) {
  .page { padding: 40px 20px 32px; }
  .form { flex-direction: column; max-width: 100%; }
  .btn { width: 100%; text-align: center; }
  .eyebrow { margin-bottom: 20px; }
  .preview { margin-top: 44px; max-width: 300px; transform: none; }
  /* Phones only: shrink the headline. Headlines are per-guide now, so they may
     wrap — only the .accent phrase stays unbreakable. */
  .headline { font-size: clamp(1.6rem, 8.4vw, 2.4rem); }
}

/* ============================================================================
   HOMEPAGE — newsletter landing ("cobalt ink on paper" + Mac desktop nostalgia)
   Everything below is additive: guide pages don't use these classes.
   ============================================================================ */

/* ---- Pixel Mac cursor ------------------------------------------------------ */
/* Hugo's pixel arrow rebuilt on its true 12x19 pixel grid — every block is a
   whole pixel, with a 2x render for Retina so nothing gets smoothed or scaled.
   Black/white arrow on the canvas; cobalt-filled variant on clickables. */
body[data-page="home"],
body[data-page="guide"],
body[data-page="access"] {
  cursor: url("/assets/img/pixel-cursor.png?grid") 0 0, auto;
  cursor: -webkit-image-set(url("/assets/img/pixel-cursor.png?grid") 1x, url("/assets/img/pixel-cursor-2x.png?grid") 2x) 0 0, auto;
  cursor: image-set(url("/assets/img/pixel-cursor.png?grid") 1x, url("/assets/img/pixel-cursor-2x.png?grid") 2x) 0 0, auto;
}
body[data-page="home"] a,
body[data-page="home"] button,
body[data-page="home"] summary,
body[data-page="home"] [role="tab"],
body[data-page="guide"] a,
body[data-page="guide"] button,
body[data-page="access"] a,
body[data-page="access"] button {
  cursor: url("/assets/img/pixel-cursor-blue.png?grid") 0 0, pointer;
  cursor: -webkit-image-set(url("/assets/img/pixel-cursor-blue.png?grid") 1x, url("/assets/img/pixel-cursor-blue-2x.png?grid") 2x) 0 0, pointer;
  cursor: image-set(url("/assets/img/pixel-cursor-blue.png?grid") 1x, url("/assets/img/pixel-cursor-blue-2x.png?grid") 2x) 0 0, pointer;
}
body[data-page="home"] input,
body[data-page="home"] textarea,
body[data-page="guide"] input,
body[data-page="access"] input { cursor: text; }

/* ---- Riso grain overlay ----------------------------------------------------- */
.grain {
  display: none;
}

/* ---- Top bar ----------------------------------------------------------------- */
.topbar {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar__nav { display: flex; align-items: center; gap: 22px; }
.topbar__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
}
.topbar__link:hover { color: var(--blue); }
.topbar__link--pill {
  border: 1.5px solid var(--blue);
  color: var(--blue-ink);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.topbar__link--pill:hover { background: var(--blue); color: #fffdf9; }

/* ---- Home layout rhythm ------------------------------------------------------ */
.page--home {
  justify-content: flex-start;
  padding: 0 0 110px;
  overflow-x: clip;   /* edge-cropped decorations (palm) must not cause sideways scroll */
}
.section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 24px 0;
}
.section__head { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--blue); }
.dot--sm {
  display: inline-block;
  width: 0.15em; height: 0.15em;
  margin-left: 0.06em;
  background: var(--blue);
  border-radius: 1px;
}
.section__sub {
  margin: 14px auto 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.microcopy--center { text-align: center; }

/* ---- Hero (home) -------------------------------------------------------------- */
.hero--home {
  position: relative;
  margin: 0 auto;
  padding: 92px 24px 0;
}
/* the tagline runs longer than a punchy two-worder — smaller size, even lines */
.hero--home .headline { font-size: clamp(1.9rem, 5.4vw, 2.7rem); text-wrap: balance; }

/* faded watercolor beach washed behind the very top of the page */
.page-beach {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: min(78vh, 660px);
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  pointer-events: none;
  user-select: none;
}
/* Phones: guide + access pages stay pure white — no beach wash. */
@media (max-width: 520px) {
  body[data-page="guide"] .page-beach,
  body[data-page="access"] .page-beach { display: none; }
}

/* ---- Comparison ("Most AI newsletters are slop") ------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
  align-items: start;
}
.compare__card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  box-shadow: var(--shadow-sm);
  transform: rotate(0.5deg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.compare__card:hover {
  transform: rotate(0.5deg) translateY(-5px);
  box-shadow: var(--shadow-md);
}
.compare__card--us {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
  transform: rotate(-0.7deg);
}
.compare__card--us:hover {
  transform: rotate(-0.7deg) translateY(-5px);
  box-shadow: 0 20px 44px -14px rgba(16, 32, 58, 0.34);
}
.compare__label {
  display: inline-block;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
}
.compare__label--us { color: var(--blue-ink); border-color: var(--blue); background: var(--blue-tint); }
.compare__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.compare__list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.compare__list li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 0.05em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #b3543f;
}
.compare__list--us li { color: var(--ink-2); }
.compare__list--us li::before { content: "✓"; color: var(--blue); }

/* ---- Typewriter letter ---------------------------------------------------------- */
/* Hugo's generated picture, letter and all — static, revealed with the standard
   smooth data-reveal rise. */
.letter {
  width: min(100%, 440px);
  margin: 40px auto 0;
}
.letter__machine {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;   /* white background melts into the canvas */
  user-select: none;
}

/* ---- Access-page unlocked preview (same card as the landing, lock open) ------- */
.preview--open .preview__doc {
  filter: none;
  opacity: 0.85;
}

/* ---- Welcome page (post-subscribe) — numbered inbox steps --------------------- */
.steps {
  margin: 34px auto 0;
  max-width: 480px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(16, 32, 58, 0.10);
  border-radius: var(--radius);
  padding: 6px 22px;
  box-shadow: 0 14px 34px rgba(16, 32, 58, 0.07);
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
}
.step + .step { border-top: 1px solid rgba(16, 32, 58, 0.08); }
.step__num {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  display: grid;
  place-items: center;
}
.step__body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
.step__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) {
  .steps { padding: 2px 16px; }
}

/* ---- Previous issues — a Mac folder per issue --------------------------------------- */
.archive {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}
.archive__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.archive__folderitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.archive__folder {
  width: min(100%, 150px);
  height: auto;
  mix-blend-mode: multiply;   /* white background melts into the canvas */
  user-select: none;
  transition: transform 0.25s var(--ease);
}
.archive__folderitem:hover .archive__folder { transform: translateY(-5px); }
.archive__date {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.archive__name {
  margin-top: 5px;
  max-width: 20ch;
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.35;
  color: var(--ink);
}
.archive__all { display: inline-block; margin-top: 56px; }

/* ---- FAQ ---------------------------------------------------------------------------- */
.faq {
  max-width: 640px;
  margin: 40px auto 0;
  border-top: 1px solid var(--line-2);
}
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__mark {
  flex: 0 0 auto;
  position: relative;
  width: 16px; height: 16px;
}
.faq__mark::before, .faq__mark::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}
.faq__mark::before { left: 0; right: 0; top: 7px; height: 2.5px; }
.faq__mark::after  { top: 0; bottom: 0; left: 7px; width: 2.5px; }
.faq__item[open] .faq__mark::after { transform: scaleY(0); }
.faq__a {
  margin: 0;
  padding: 0 36px 22px 4px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---- Contact — the pinned handwritten note ---------------------------------------------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 10px;
}
.contact__notewrap {
  position: relative;
  width: min(100%, 380px);
  transform: rotate(1.2deg);
  filter: drop-shadow(0 18px 28px rgba(16, 32, 58, 0.16));
}
.contact__noteimg { width: 100%; height: auto; user-select: none; }
/* invisible hit-target over the handwritten email line in the photo */
.contact__mail {
  position: absolute;
  left: 12.6%; width: 77.3%;
  top: 86.6%; height: 8.1%;
  border-radius: 8px;
  transition: background 0.18s var(--ease);
}
.contact__mail:hover { background: rgba(117, 180, 219, 0.18); }
.contact__mail:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  background: rgba(117, 180, 219, 0.18);
}

/* ---- Final signup ------------------------------------------------------------------------ */
.section--again { position: relative; text-align: center; }
.again .form { max-width: 440px; }

/* navy ink palms leaning in from the right margin */
.again__palm {
  position: absolute;
  right: -48px;
  bottom: -80px;
  width: 250px;
  height: auto;
  transform: rotate(4deg);
  mix-blend-mode: multiply;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

/* ---- Newsletter form success state -------------------------------------------------------- */
.form-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 34px auto 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-ink);
  border: 1.5px dashed var(--blue);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  background: var(--blue-tint);
}

/* ---- Scroll reveal ------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* keep the collage tilts once revealed */
.js .compare__card[data-reveal].is-visible { transform: rotate(0.5deg); }

/* ---- Motion safety --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .archive__arrow { transition: none !important; }
}

/* ---- Responsive (home) ------------------------------------------------------------------------ */
@media (max-width: 760px) {
  .section { padding-top: 84px; }
  .page-beach { height: 46vh; opacity: 0.13; }
  .again__palm { display: none; }
  .compare { grid-template-columns: 1fr; }
  .compare__card, .compare__card--us { transform: none; }
  .js .compare__card[data-reveal].is-visible { transform: none; }
  .archive__grid { gap: 14px; }
  .archive__name { font-size: 0.82rem; max-width: none; }
  .topbar { padding: 20px 20px 0; }
  .topbar__nav { gap: 14px; }
  .topbar__link:not(.topbar__link--pill) { display: none; }
}
