/* SEO Specimen's launch page (owner request, 9 October 2026). It shares site.css (type, header, menu, buttons,
   footer) and follows Fredrick's approved landing structure (the mobile-landing-hero skill): a one-row header with
   the button in it, a phone hero that fills exactly the first screen in the order image, headline, offer,
   button, text link and three checks, with the spare height shared evenly between them, and every later
   section on a screen of its own, card lists becoming swipe rails on phones. The accent is SEO Specimen's teal
   rather than Code Specimen's indigo, so the page reads as its own product inside the family. */

body.seo {
  --ac: #1E6A68; --acs: #E3EEEA; --on: #FFFFFF;
  --stage: #1E6A68; --stage-tx: #FFFFFF; --stage-t2: #D7ECE9; --stage-btn: #FFFFFF; --stage-btn-tx: #1E6A68;
  --header-h: 76px;
  --screen: calc(100svh - var(--header-h));
}
@media (prefers-color-scheme: dark) {
  body.seo {
    --ac: #6CC6C2; --acs: #123330; --on: #0B0D0D;
    --stage: #123330; --stage-tx: #EEF2F1; --stage-t2: #BFDCD8; --stage-btn: #6CC6C2; --stage-btn-tx: #0B0D0D;
  }
}
body.seo .cta { box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px rgba(30,106,104,.28); }
body.seo .cta:hover { box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px rgba(30,106,104,.34); }
section[id] { scroll-margin-top: var(--header-h); }
.seo-cta { display: contents; }
.seo-cta > span { display: contents; }

/* The header keeps its button on phones too, beside the menu button, so the action is never a tap away. */
.site-header--seo .header-cta { margin-left: auto; display: flex; }
.site-header--seo .nav + .header-cta { margin-left: 0; }
.site-header--seo .menu-btn { margin-left: 0; }

/* --- The hero ------------------------------------------------------------------------------------------- */
.s-hero__in { min-height: var(--screen); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding-block: clamp(24px, 4svh, 56px); }
.s-kicker { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.s-hero h1 { margin: 0; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; max-width: 12em; }
.s-offer { margin: 22px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--t2); max-width: 30em; }
.s-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.s-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ac); font-weight: 600; font-size: 17px; text-underline-offset: 4px; }
.s-checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.s-checks li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--tx); }
.s-checks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--acs) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6A68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.s-hero__media { margin: 0; justify-self: center; height: min(72svh, 640px); aspect-ratio: 1 / 2; border-radius: 20px; overflow: hidden; border: 1px solid var(--bd); box-shadow: var(--lift); background: var(--sf); }
.s-hero__media img, .s-split__media img, .s-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* --- Sections, each on a screen of its own ------------------------------------------------------------ */
.s-sec { min-height: var(--screen); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 8svh, 112px); border-top: 1px solid var(--bd); }
.s-cap { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.s-sec h2 { margin: 0; font-size: clamp(34px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -.01em; max-width: 16em; }
.s-head { margin-bottom: clamp(24px, 4svh, 48px); }
.s-lede { margin: 20px 0 0; font-size: 19px; line-height: 1.6; color: var(--t2); max-width: 34em; }
.s-body { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--t2); max-width: 36em; }
.s-head .s-lede { max-width: 40em; }
.s-small { margin: 20px 0 0; font-size: 16px; }
.s-small a { color: var(--ac); font-weight: 600; }
.s-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34em; }
.s-points li { padding-left: 18px; border-left: 3px solid var(--ac); color: var(--t2); font-size: 17px; line-height: 1.55; }
.s-points b { color: var(--tx); }

.s-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.s-split--flip .s-split__media { order: -1; }
.s-split__media { margin: 0; justify-self: center; height: min(68svh, 620px); aspect-ratio: 1 / 2; border-radius: 20px; overflow: hidden; border: 1px solid var(--bd); box-shadow: var(--lift); background: var(--sf); }
.s-split__media--doc { aspect-ratio: 1 / 2; }

.s-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.s-card { background: var(--sf); border: 1px solid var(--bd); border-radius: 20px; padding: 20px 20px 24px; display: flex; flex-direction: column; }
.s-card__media { height: clamp(220px, 42svh, 440px); border-radius: 14px; overflow: hidden; border: 1px solid var(--bd); background: var(--rs); }
.s-card h3 { margin: 18px 0 0; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.s-card p { margin: 8px 0 0; color: var(--t2); font-size: 16px; line-height: 1.55; }
.s-swipe { display: none; }

.s-facts { margin: 0; display: grid; gap: 0; background: var(--sf); border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; }
.s-facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--bd); }
.s-facts > div:first-child { border-top: 0; }
.s-facts dt { font-weight: 700; color: var(--tx); }
.s-facts dd { margin: 0; color: var(--t2); }

.s-faq { max-width: 880px; }
.s-faq__list details { border-top: 1px solid var(--bd); }
.s-faq__list details:last-child { border-bottom: 1px solid var(--bd); }
.s-faq__list summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 20px); font-weight: 650; color: var(--tx); padding: 10px 0; }
.s-faq__list summary::-webkit-details-marker { display: none; }
.s-faq__list summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--ac); }
.s-faq__list details[open] summary::after { content: "−"; }
.s-faq__list p { margin: 0 0 18px; color: var(--t2); font-size: 17px; line-height: 1.6; max-width: 40em; }

.s-final { min-height: var(--screen); display: flex; flex-direction: column; justify-content: center; background: var(--stage); color: var(--stage-tx); text-align: center; padding-block: 64px; }
.s-final h2 { margin: 0 auto; max-width: 13em; font-size: clamp(38px, 5vw, 72px); line-height: 1.04; }
.s-final__lede { margin: 20px auto 0; font-size: 19px; color: var(--stage-t2); }
.s-final__cta { margin-top: 32px; display: flex; justify-content: center; }
.s-final .cta { background: var(--stage-btn); color: var(--stage-btn-tx); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.s-final__checks { list-style: none; margin: 28px auto 0; padding: 0; display: inline-grid; gap: 10px; text-align: left; }
.s-final__checks li { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--stage-tx); }
.s-final__checks li::before { content: "✓"; width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.16); }
.s-final__small { margin: 14px auto 0; color: var(--stage-t2); font-size: 15px; }
.s-final :focus-visible { outline-color: var(--stage-tx); }

/* --- Tablets ------------------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  body.seo { --header-h: 64px; }
  .s-hero__in, .s-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .s-split--flip .s-split__media { order: 0; }
  .s-hero__media { height: min(56svh, 520px); }
  .s-split__media { height: min(56svh, 520px); }
}
@media (max-width: 860px) {
  .site-header--seo .header-cta { display: flex !important; }
  .site-header--seo .header-cta .cta { display: inline-flex !important; min-height: 44px; padding: 0 14px; font-size: 15px; }
  .site-header--seo .wrap { gap: 12px; }
}

/* --- Phones: the approved first screen, and rails for card lists ---------------------------------------- */
@media (max-width: 540px) {
  .site-header--seo .brand span { font-size: 17px; white-space: nowrap; }
  .site-header--seo .header-cta .cta { padding: 0 12px; font-size: 14px; }

  .s-hero__in {
    --hero-gap: clamp(10px, 1.6svh, 18px);
    display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
    min-height: var(--screen); padding-block: var(--hero-gap); gap: var(--hero-gap); text-align: center;
  }
  .s-hero__copy { display: contents; }
  .s-kicker { display: none; }
  /* The image takes the height the text leaves, tied to the screen, so the button clears the fold on the
     shortest phone and a tall phone shows more of the log. */
  .s-hero__media {
    order: -1; flex: none; height: clamp(110px, calc(100svh - 470px), 300px); width: min(220px, 60vw);
    aspect-ratio: auto; border-radius: 16px;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    border: 0; box-shadow: none; background: transparent;
  }
  .s-hero__media picture { display: block; height: 100%; }
  .s-hero h1 { font-size: 34px; max-width: 11em; }
  .s-offer { margin: 0; font-size: 16px; max-width: 22em; }
  .s-actions { margin: 0; width: 100%; flex-direction: column; gap: 4px; }
  .s-actions .cta { width: 100%; }
  .s-link { font-size: 16px; text-decoration: underline; }
  .s-checks { margin: 0; justify-self: center; gap: 6px; text-align: left; }
  .s-checks li { font-size: 15px; }

  .s-sec { padding-block: 32px; justify-content: center; }
  /* The hero already shows the log on a phone, so its section here is words only. */
  #log .s-split__media { display: none; }
  .s-sec h2 { font-size: 30px; }
  .s-lede { font-size: 16px; }
  .s-body { font-size: 16px; }
  .s-points li { font-size: 16px; }
  .s-split__media { width: min(260px, 70vw); height: auto; max-height: clamp(220px, 42svh, 380px); aspect-ratio: 1 / 2; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }

  .s-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .s-rail::-webkit-scrollbar { display: none; }
  .s-rail:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
  .s-card { flex: 0 0 84%; scroll-snap-align: center; padding: 14px 14px 18px; }
  .s-card__media { height: clamp(150px, 24svh, 280px); }
  .s-head .s-lede { font-size: 16px; margin-top: 12px; }
  .s-head { margin-bottom: 18px; }
  .s-card h3 { font-size: 19px; margin-top: 14px; }
  .s-card p { font-size: 16px; }
  .s-swipe { display: block; margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--t2); }

  .s-facts > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 16px; }
  .s-faq__list summary { font-size: 17px; }
  .s-faq__list p { font-size: 16px; }
  .s-final h2 { font-size: 34px; }
  .s-final .cta { width: 100%; }
}

/* Wide screens grow with the window, up to 1,440px, rather than leaving wide empty margins. */
@media (min-width: 1500px) { body.seo .wrap { max-width: min(84vw, 1440px); } }

/* Short phones (an iPhone SE, or any phone with its toolbars showing): the swipe cards' pictures give up the
   height first, so each rail section still fits one screen while its text keeps its size. */
@media (max-width: 540px) and (max-height: 700px) {
  .s-card__media { height: clamp(120px, 22svh, 180px); }
  .s-cap { margin-bottom: 8px; }
}
/* On phones shorter than 760px, the one-sentence intro above a swipe rail gives way, since each card makes the
   same point in its own words and the rail must fit one screen. */
@media (max-width: 540px) and (max-height: 760px) {
  .s-head .s-lede { display: none; }
}
/* Narrow phones such as a 360px Android wrap each card's words onto more lines, so the pictures shrink further
   there and the intro above the rail can stay. */
@media (max-width: 370px) {
  .s-card__media { height: clamp(112px, 16svh, 150px); }
}
