/* ============================================================
   HuahinFood V2 — /for-owners/  (Rainnie's sales page)
   Map to repo as: /for-owners/for-owners.css

   Link order in index.html:
     /tokens.css  →  /platform.css  →  /promo-shop.css  →  this file
   Page classes are prefixed .fo- so nothing can shadow platform.css.
   Designed mobile-first at 390px; verified up to 1120px (--hf-max-page).
   ============================================================ */

.fo-body {
  background: var(--hf-sand, #f5efe6);
  color: var(--hf-ink, #1c1814);
  font-family: var(--hf-font-body, "Sarabun", sans-serif);
  -webkit-text-size-adjust: 100%;
}

/* thin progress line so a long scroll feels purposeful on a phone */
.fo-founding-callout {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}
.fo-founding-callout a {
  color: var(--hf-coral, #e85d4c);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fo-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 60;
  background: linear-gradient(90deg, var(--hf-teal, #0d5c63), var(--hf-coral, #e85d4c));
  pointer-events: none;
}

/* ---- shared section shell ---- */
.fo-section {
  padding: var(--hf-section, 56px) 18px;
  width: 100%;
  max-width: var(--hf-max-page, 1120px);
  margin: 0 auto;
}

.fo-section--flush { padding-inline: 18px; }

.fo-band {
  width: 100%;
  padding: var(--hf-section, 56px) 18px;
}

.fo-band__inner {
  max-width: var(--hf-max-page, 1120px);
  margin: 0 auto;
}

.fo-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--hf-r-pill, 999px);
  font-size: var(--hf-t-eyebrow, 0.65rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hf-coral, #e85d4c);
}

.fo-kicker--sand {
  color: var(--hf-ink, #1c1814);
  background: rgba(13, 92, 99, 0.1);
}

.fo-guests {
  border-top: 1px solid var(--hf-line, rgba(13, 92, 99, 0.14));
  border-bottom: 1px solid var(--hf-line, rgba(13, 92, 99, 0.14));
  background: linear-gradient(180deg, rgba(13, 92, 99, 0.05), transparent 72%);
}

.fo-guests-grid {
  margin-top: 20px;
}

.fo-guests-note {
  margin-top: 16px;
  font-size: var(--hf-t-caption, 0.75rem);
  font-weight: 600;
  color: var(--hf-muted, #5e564e);
  max-width: 52ch;
}

.fo-h2 {
  font-size: var(--hf-t-h2, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.fo-h2 em {
  font-family: var(--hf-font-display, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 500;
  color: var(--hf-teal-light, #14808a);
}

.fo-sub {
  margin-top: 10px;
  max-width: 58ch;
  font-size: var(--hf-t-body, 0.94rem);
  line-height: 1.6;
  color: var(--hf-muted, #5e564e);
}

/* ============ 1. HERO ============ */
.fo-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 18px 46px;
  background:
    radial-gradient(120% 90% at 92% 4%, rgba(255, 179, 71, 0.20), transparent 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(13, 92, 99, 0.14), transparent 60%),
    var(--hf-sand, #f5efe6);
}

.fo-hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: var(--hf-max-page, 1120px);
  margin: 0 auto;
}

.fo-hero__h1 {
  font-size: var(--hf-t-hero, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fo-hero__h1 .fo-free {
  display: inline-block;
  padding: 0 10px;
  border-radius: 12px;
  color: #fff;
  background: var(--hf-coral, #e85d4c);
  box-shadow: 0 6px 18px rgba(232, 93, 76, 0.3);
}

.fo-hero__lead {
  margin-top: 14px;
  max-width: 34ch;
  font-size: var(--hf-t-lead, 1.05rem);
  line-height: 1.55;
  color: var(--hf-ink-70, rgba(28, 24, 20, 0.7));
}

.fo-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fo-hero__note {
  margin-top: 12px;
  font-size: var(--hf-t-caption, 0.75rem);
  color: var(--hf-muted, #5e564e);
}

.fo-hero__phone { position: relative; }

/* trust chips under hero */
.fo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.fo-trust li {
  padding: 6px 12px;
  border-radius: var(--hf-r-pill, 999px);
  font-size: var(--hf-t-caption, 0.75rem);
  font-weight: 700;
  color: var(--hf-teal);
  background: #fff;
  border: 1px solid var(--hf-line, rgba(13, 92, 99, 0.14));
}

/* ============ 2. WHAT'S FREE ============ */
.fo-free-grid { margin-top: 26px; }

.fo-free-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--hf-r-md, 16px);
  font-size: var(--hf-t-small, 0.82rem);
  font-weight: 700;
  color: var(--hf-teal);
  background: var(--hf-teal-veil, rgba(13, 92, 99, 0.08));
  border-left: 4px solid var(--hf-teal, #0d5c63);
}

/* ============ 3. WHY / COMPARE ============ */
.fo-band--teal {
  background: linear-gradient(165deg, var(--hf-teal, #0d5c63), #094046);
  color: #fff;
}

.fo-band--teal .fo-h2 { color: #fff; }
.fo-band--teal .fo-sub { color: rgba(255, 255, 255, 0.82); }
.fo-band--teal .fo-kicker { background: var(--hf-sunset, #ffb347); color: var(--hf-ink); }

.fo-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.fo-points li {
  padding: 16px 18px;
  border-radius: var(--hf-r-md, 16px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fo-points strong {
  display: block;
  font-size: var(--hf-t-body, 0.94rem);
  font-weight: 800;
}

.fo-points span {
  display: block;
  margin-top: 5px;
  font-size: var(--hf-t-caption, 0.75rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.80);
}

/* compare table on teal needs its own surface */
.fo-band--teal .fo-compare-wrap {
  border-radius: var(--hf-r-md, 16px);
  overflow: hidden;
  box-shadow: var(--hf-sh-night, 0 16px 44px rgba(0, 0, 0, 0.45));
}

.hf2-compare__mob-h {
  display: none;
}

.fo-compare-note {
  margin-top: 12px;
  font-size: var(--hf-t-caption, 0.75rem);
  color: rgba(255, 255, 255, 0.72);
}

/* ============ 4. WEEKLY PROMOS ============ */
.fo-promos {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.fo-promo-card {
  border-radius: var(--hf-r-lg, 20px);
  overflow: hidden;
  background: var(--hf-cream, #fffdf8);
  border: 1px solid var(--hf-line, rgba(13, 92, 99, 0.14));
  box-shadow: var(--hf-sh-1, 0 4px 14px rgba(28, 24, 20, 0.07));
}

.fo-promo-card__shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--hf-sand-deep, #ebe3d6);
}

.fo-promo-card__body { padding: 0 16px 16px; }

.fo-promo-card__ribbon {
  margin: 0 -16px 14px;
  position: sticky;
  top: auto;
}

.fo-promo-card__title {
  display: block;
  font-size: var(--hf-t-body, 0.94rem);
  font-weight: 800;
}

.fo-promo-card__text {
  display: block;
  margin-top: 4px;
  font-size: var(--hf-t-caption, 0.75rem);
  line-height: 1.5;
  color: var(--hf-muted, #5e564e);
}

.fo-promo-link {
  display: inline-block;
  margin-top: 10px;
  font-size: var(--hf-t-caption, 0.75rem);
  font-weight: 800;
  color: var(--hf-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ 5. 60-SECOND STORYBOARD ============ */
.fo-band--sand { background: var(--hf-sand-deep, #ebe3d6); }

.fo-frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 320px);
  gap: 12px;
  margin-top: 22px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.fo-frame {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--hf-r-md, 16px);
  background: var(--hf-cream, #fffdf8);
  border: 1px solid var(--hf-line);
  box-shadow: var(--hf-sh-1);
}

.fo-frame__no {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--hf-coral);
}

.fo-frame__title {
  font-size: var(--hf-t-body);
  font-weight: 800;
}

.fo-frame__shot {
  margin: 12px 0 10px;
  border-radius: var(--hf-r-sm, 10px);
  overflow: hidden;
  background: var(--hf-sand-deep);
  aspect-ratio: 4 / 3;
}

.fo-frame__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fo-frame__copy {
  font-size: var(--hf-t-caption);
  line-height: 1.55;
  color: var(--hf-muted);
}

.fo-frame__time {
  margin-top: auto;
  padding-top: 10px;
  font-size: var(--hf-t-eyebrow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-teal-light);
}

/* ============ 6. HOW TO JOIN ============ */
.fo-steps { margin-top: 26px; }

/* ============ 7. FAQ ============ */
.fo-faq {
  margin-top: 24px;
  border-radius: var(--hf-r-lg, 20px);
  overflow: hidden;
  background: var(--hf-cream, #fffdf8);
  border: 1px solid var(--hf-line);
}

.fo-faq details { border-bottom: 1px solid var(--hf-line); }
.fo-faq details:last-child { border-bottom: 0; }

.fo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: var(--hf-t-body);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  min-height: var(--hf-tap, 44px);
}

.fo-faq summary::-webkit-details-marker { display: none; }

.fo-faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hf-teal);
  background: var(--hf-teal-veil);
}

.fo-faq details[open] summary::after { content: "–"; }

.fo-faq__a {
  padding: 0 18px 18px;
  font-size: var(--hf-t-small);
  line-height: 1.65;
  color: var(--hf-muted);
}

/* ============ 8. FINAL CTA ============ */
.fo-cta {
  margin: 0 18px 40px;
  padding: 30px 22px;
  max-width: calc(var(--hf-max-page, 1120px) - 36px);
  margin-inline: auto;
  border-radius: var(--hf-r-xl, 28px);
  text-align: center;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(232, 93, 76, 0.16), transparent 62%),
    var(--hf-cream, #fffdf8);
  border: 2px solid var(--hf-line-strong, rgba(13, 92, 99, 0.28));
  box-shadow: var(--hf-sh-2);
}

.fo-cta__h2 {
  font-size: var(--hf-t-h2);
  font-weight: 800;
  line-height: 1.2;
}

.fo-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.fo-cta__fine {
  margin-top: 14px;
  font-size: var(--hf-t-caption);
  color: var(--hf-muted);
}

/* sticky "show this to the owner" helper on phones */
.fo-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hf-line-strong);
  box-shadow: 0 -6px 24px rgba(28, 24, 20, 0.12);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.fo-sticky-cta.is-in { transform: translateY(0); }
.fo-foot-contact {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--hf-muted, #5e564e);
}
.fo-foot-contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fo-hero__note a {
  font-size: var(--hf-t-caption, 0.75rem);
  font-weight: 700;
  color: var(--hf-teal, #0d5c63);
  text-decoration: none;
}
.fo-hero__note a:hover { text-decoration: underline; }
.fo-trust--hero {
  margin-top: 4px;
}

/* ============ breakpoints ============ */
@media (min-width: 720px) {
  .fo-hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 36px; }
  .fo-hero__lead { max-width: 44ch; }
  .fo-promos { grid-template-columns: repeat(2, 1fr); }
  .fo-frames {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
  }
}

@media (min-width: 980px) {
  .fo-promos { grid-template-columns: repeat(4, 1fr); }
  .fo-points { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 719px) {
  .fo-hero { padding-bottom: 28px; }
  .fo-hero__phone { display: none; }
}

@media (max-width: 420px) {
  .fo-hero { padding-top: 24px; }
  .fo-hero__cta .fo-btn,
  .fo-hero__cta .hf2-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fo-sticky-cta { transition: none; }
}

/* Phase 2 — the quiet link that replaced the pricing footnote.
   Deliberately plain: no tint, no left bar, so it never looks like an offer. */
.fo-free-flag--quiet {
  padding: 0;
  background: none;
  border-left: 0;
  font-weight: 600;
}

.fo-free-flag--quiet a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hf-teal, #0d5c63);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--hf-line-strong, rgba(13, 92, 99, 0.28));
}

/* Teal band: keep compare readable (promo-shop.css stacks cells without headers on small screens). */
.fo-band--teal .hf2-compare td { color: var(--hf-ink, #1c1814); }
.fo-band--teal .hf2-compare tbody th { color: var(--hf-ink, #1c1814); }
.fo-band--teal .hf2-compare .is-us { color: var(--hf-teal, #0d5c63); }
.fo-band--teal .hf2-compare thead th { color: #ffffff; background: var(--hf-teal, #0d5c63); }
.fo-band--teal .hf2-compare caption { color: rgba(255, 255, 255, 0.84); text-align: left; }

@media (max-width: 719px) {
  .fo-band--teal .fo-compare-wrap {
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  .fo-band--teal .hf2-compare {
    display: block;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .fo-band--teal .hf2-compare caption {
    padding-bottom: 12px;
  }

  .fo-band--teal .hf2-compare thead {
    display: none;
  }

  .fo-band--teal .hf2-compare tbody {
    display: block;
  }

  .fo-band--teal .hf2-compare tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: var(--hf-r-md, 16px);
    background: var(--hf-cream, #fffdf8);
    box-shadow: var(--hf-sh-1, 0 4px 14px rgba(28, 24, 20, 0.12));
  }

  .fo-band--teal .hf2-compare tbody th {
    display: block;
    width: 100%;
    padding: 0 0 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--hf-line, rgba(13, 92, 99, 0.14));
    font-size: 0.92rem;
  }

  .fo-band--teal .hf2-compare tbody td {
    display: block;
    padding: 10px 0 0;
    border-bottom: 0;
  }

  .fo-band--teal .hf2-compare tbody td + td {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--hf-line, rgba(13, 92, 99, 0.14));
  }

  .fo-band--teal .hf2-compare .hf2-compare__mob-h {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hf-muted, #5e564e);
  }

  .fo-band--teal .hf2-compare td.is-us .hf2-compare__mob-h {
    color: var(--hf-teal, #0d5c63);
  }

  .fo-band--teal .hf2-compare td.is-us {
    background: var(--hf-teal-veil, rgba(13, 92, 99, 0.08));
    margin-inline: -10px;
    padding-inline: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
  }
}
