/* ═══════════════════════════════════════════════════════════════
   FOTOCAL — section pages (Features detail, About, Contact)
   Loaded after site.css + home.css. Reuses .illus, .check-list,
   .pill, .flow-row and the shared tokens so these pages read as the
   same product as the homepage.

     .sp-hero      split hero: copy + portrait artwork
     .sp-steps     numbered method steps
     .sp-band      full-width image + copy band
     .sp-cards     supporting card grid
     .cf-*         contact form
   ═══════════════════════════════════════════════════════════════ */

/* ─── Split hero ─── */
.sp-hero { position: relative; padding: 2.8rem 0 1rem; overflow: hidden; }
.sp-hero::before {
  content: ""; position: absolute; top: -200px; right: -140px;
  width: 460px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,122,61,.22), transparent 66%);
  filter: blur(46px);
}
.sp-hero .container { position: relative; }
.sp-hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.sp-hero h1 {
  font-family: var(--font-display); font-weight: 550;
  font-size: clamp(2rem, 5.6vw, 3.2rem); line-height: 1.1; letter-spacing: -.022em;
  margin-bottom: .9rem;
}
.sp-hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 54ch; margin-bottom: 1.5rem; }
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.sp-hero .illus { max-width: 420px; margin-inline: auto; }
@media (min-width: 900px) {
  .sp-hero { padding: 3.6rem 0 1.5rem; }
  .sp-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.2rem; }
}

/* ─── Numbered method steps ─── */
.sp-steps { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
@media (min-width: 700px)  { .sp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .sp-steps { grid-template-columns: repeat(4, 1fr); } }
.sp-step {
  position: relative;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .32s cubic-bezier(.2,.8,.3,1), box-shadow .32s ease, border-color .32s ease;
}
.sp-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--border); }
.sp-step-n {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px; margin-bottom: .85rem;
  background: var(--grad); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-cta);
}
.sp-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.sp-step p { font-size: .9rem; color: var(--muted); }

/* ─── Image + copy band ─── */
.sp-band { display: grid; gap: 2rem; align-items: center; padding: 1rem 0; }
.sp-band .illus { max-width: 440px; width: 100%; margin-inline: auto; }
.sp-band h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em;
  margin-bottom: .7rem;
}
.sp-band > div > p { color: var(--muted); margin-bottom: 1.1rem; }
@media (min-width: 900px) {
  .sp-band { grid-template-columns: 1fr 1fr; gap: 3.4rem; }
  .sp-band.flip .sp-band-media { order: 2; }
  .sp-band.flip .sp-band-copy  { order: 1; }
}

/* ─── Supporting cards ─── */
.sp-cards { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 640px) { .sp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .sp-cards { grid-template-columns: repeat(3, 1fr); } }
.sp-card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.sp-card:hover { transform: translateY(-4px); border-color: var(--border-pink); box-shadow: var(--shadow-card); }
.sp-card-ico {
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: .9rem;
  display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(233,30,99,.45);
}
.sp-card-ico svg { width: 20px; height: 20px; }
.sp-card h3 { font-size: 1.03rem; font-weight: 700; margin-bottom: .3rem; }
.sp-card p { font-size: .9rem; color: var(--muted); }

/* ═══════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════ */
.cf-grid { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 900px) { .cf-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.cf-media .illus { max-width: 420px; margin-inline: auto; }

.cf-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.cf-field { margin-bottom: 1.05rem; }
.cf-field label {
  display: block; font-size: .86rem; font-weight: 700; color: var(--ink);
  margin-bottom: .4rem;
}
.cf-field label .opt { font-weight: 500; color: var(--muted); }
.cf-field input,
.cf-field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .8rem .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cf-field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--muted); opacity: .75; }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233,30,99,.12);
}
/* invalid only after a submit attempt, so the form is not red on arrival */
.cf-form.was-validated .cf-field input:invalid,
.cf-form.was-validated .cf-field textarea:invalid { border-color: #D92D20; }
.cf-err {
  display: none; margin-top: .35rem;
  font-size: .8rem; font-weight: 600; color: #D92D20;
}
.cf-form.was-validated .cf-field input:invalid ~ .cf-err,
.cf-form.was-validated .cf-field textarea:invalid ~ .cf-err { display: block; }

/* Honeypot — must be reachable by bots but never by a person. Collapsed in
   place rather than parked at left:-9999px, which pushes the document's
   bounds around and behaves badly in right-to-left layouts. */
.cf-hp {
  position: absolute !important;
  width: 0; height: 0; overflow: hidden;
  opacity: 0; pointer-events: none; z-index: -1;
}

.cf-submit { width: 100%; margin-top: .3rem; }
.cf-submit[disabled] { opacity: .65; cursor: progress; }
.cf-note { margin-top: .85rem; font-size: .8rem; color: var(--muted); text-align: center; }

/* result banners */
.cf-result { display: none; border-radius: var(--r-md); padding: .95rem 1.1rem; margin-top: 1rem; font-size: .92rem; }
.cf-result.show { display: block; }
.cf-result-ok  { background: #E9F8F0; border: 1px solid rgba(23,178,106,.35); color: #116B41; font-weight: 600; }
.cf-result-bad { background: #FDECEC; border: 1px solid rgba(217,45,32,.3);  color: #9A2018; font-weight: 600; }

/* ═══════════════════════════════════════════════
   LEGAL PAGE HEADER SYMBOL
   ═══════════════════════════════════════════════ */
.legal-sym {
  width: 58px; height: 58px; border-radius: 17px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--grad-wash); border: 1px solid var(--border-pink);
  color: var(--pink);
}
.legal-sym svg { width: 28px; height: 28px; }

/* ─── Method steps ───
   The original .steps grid is 3-up; these pages have four steps, which
   left a lone card on a second row. :has() lets the 4-step variant go
   4-up without touching the markup, and falls back to 3-up if unsupported. */
@media (min-width: 1050px) {
  .steps:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   DEDICATED FEATURE PAGES
   /features/{voice-logging,recipe,scan-food,scan-barcode}/

   These lead with one wide piece of artwork rather than the split
   hero the goal pages use — the art is 3:2, and a landscape image
   squeezed into a half-width column is smaller than it deserves to
   be. So: centred copy, then the image full-width beneath it.
   ═══════════════════════════════════════════════════════════════ */
.fp-hero { position: relative; padding: 3rem 0 1rem; overflow: hidden; }
.fp-hero::before {
  content: ""; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 500px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,122,61,.16), transparent 66%);
  filter: blur(44px);
}
.fp-hero .container { position: relative; }
.fp-hero-copy { text-align: center; max-width: 46rem; margin-inline: auto; }
.fp-hero-copy h1 {
  font-family: var(--font-display); font-weight: 550;
  font-size: clamp(2.05rem, 5.8vw, 3.35rem); line-height: 1.08; letter-spacing: -.024em;
  margin-bottom: .95rem;
}
.fp-hero-copy .lead {
  color: var(--muted); font-size: 1.06rem;
  max-width: 60ch; margin: 0 auto 1.6rem;
}
.fp-hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center; justify-content: center;
}
@media (min-width: 900px) { .fp-hero { padding: 4rem 0 1rem; } }

/* ─── Wide showcase image ───
   The glow is a separate element rather than a ::before on .fp-shot:
   .shot-card sets overflow:hidden for its rounded corners, and a
   pseudo-element that has to bleed *outside* the card cannot live
   inside the thing that clips it. */
.fp-shot { position: relative; width: min(940px, 100%); margin: 2.6rem auto 0; }
.fp-shot-glow {
  position: absolute; z-index: 0; pointer-events: none;
  left: 6%; right: 6%; top: 16%; bottom: -7%;
  background: radial-gradient(closest-side, rgba(233,30,99,.26), transparent 74%);
  filter: blur(38px);
}
.fp-shot .shot-card { position: relative; z-index: 1; }

/* ─── "How the advice works" panel ─── */
.fp-rec {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-xl); padding: 2rem 1.6rem 1.9rem;
  box-shadow: var(--shadow-card);
}
.fp-rec h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.45rem, 3.8vw, 2rem); line-height: 1.2; letter-spacing: -.015em;
  margin-bottom: .7rem;
}
.fp-rec > p { color: var(--muted); margin-bottom: 1.3rem; }
.fp-rec .check-list li { margin-bottom: .7rem; }
@media (min-width: 700px) { .fp-rec { padding: 2.4rem 2.2rem 2.2rem; } }

/* ═══════════════════════════════════════════════
   RELATED READING CARDS
   Shared with the three goal pages, which have used .fc-rcard since
   they were built but had no rules for it anywhere — the markup was
   rendering as three runs of inline text.
   ═══════════════════════════════════════════════ */
.fc-related { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 700px)  { .fc-related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fc-related { grid-template-columns: repeat(3, 1fr); } }
.fc-rcard {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.fc-rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border-pink); }
.fc-rkicker {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--pink);
}
.fc-rtitle {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600;
  line-height: 1.25; letter-spacing: -.01em; color: var(--ink);
  text-wrap: balance;
}
.fc-rarrow {
  margin-top: auto; padding-top: .6rem;
  font-size: .86rem; font-weight: 700; color: var(--pink);
  transition: transform .3s ease;
}
.fc-rcard:hover .fc-rarrow { transform: translateX(4px); }

/* Four-up variant — the Features overview lists all four core pages,
   and 3-up left a single card stranded on its own row. */
@media (min-width: 1000px) { .fc-related-4 { grid-template-columns: repeat(4, 1fr); } }

/* Landscape band art. The default .sp-band .illus caps at 440px, which
   suits the portrait pieces but leaves a 5:4 image looking stranded in a
   half-width column. */
.sp-band .illus.sp-band-wide { max-width: 560px; }
