/* The Little Table · landing page styles.
   Loads after tokens.css and bundle.css (the design system, unedited). Four parts:
   1. the page styles from design-system/components/LandingPage/preview.html, as they are
   2. the inline styles from preview.html, moved into classes with the same values
   3. live-site additions (WhatsApp button, form messages, 404)
   4. responsive overrides: 1024px+ is the design untouched; 768–1023 scales; below 768 is the mobile layout */

/* ---------- 1. page styles from the design ---------- */
.in{max-width:1180px;margin:0 auto;padding:0 50px}
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:72px;align-items:center;padding:48px 0 40px}
.hero .tlt-photo{width:100%;max-width:400px;justify-self:end}
.menu2{display:grid;grid-template-columns:.8fr 1.2fr;gap:72px;padding:56px 0 0;align-items:start}
.feature{display:grid;grid-template-columns:240px 1fr;gap:36px;align-items:center;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.soon{display:flex;justify-content:space-between;align-items:baseline;padding:20px 0;border-bottom:1px solid var(--line)}
.ing4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:36px}
.story{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.samples{display:grid;grid-template-columns:.95fr 1.05fr;gap:64px;align-items:start}
.form{background:var(--milk);border-radius:var(--radius-card);padding:36px;box-shadow:var(--shadow-soft)}
.form .tlt-field+.tlt-field{margin-top:20px}
.faq2{display:grid;grid-template-columns:.8fr 1.2fr;gap:72px}
.contact{display:grid;grid-template-columns:1fr;gap:14px}
.ctile{display:flex;align-items:center;gap:20px;padding:18px 22px;border:1px solid var(--line);border-radius:var(--radius-card);text-decoration:none;color:var(--coconut);background:var(--milk)}
.ctile .disc{width:56px;height:56px;border-radius:50%;background:var(--atta);display:grid;place-items:center;flex:none}

/* ---------- 2. former inline styles ---------- */
.site-header{padding:0 50px}
.site-header__logo{width:220px}
.hero__title{margin-top:16px}
.hero__lede{margin-top:22px;max-width:470px}
.hero__cta{margin-top:32px;gap:28px}
.trust{font-size:17px}
.section-title{margin-top:10px}
.menu2__lede{margin-top:16px;max-width:360px}
.feature__title{margin-top:8px}
.feature__tagline{font-size:17px;line-height:26px;margin:8px 0 0}
.feature__desc{margin-top:14px}
.feature__link{margin-top:6px}
.soon__name{font-size:26px;line-height:32px;margin-top:6px}
.band-section{margin-top:56px}
.inside__band{padding:56px 0 48px}
.inside__in{text-align:center}
.ing4 .tlt-ingredient__name{font-size:24px;line-height:30px}
.inside__listlabel{margin-top:36px}
.inside__list{font-size:19px;line-height:28px;color:var(--coconut);margin:8px auto 0;max-width:720px}
.inside__rule{margin:24px auto 16px;max-width:640px}
.inside__facts{justify-content:center;gap:32px}
.story{padding-top:48px}
.story__photo{aspect-ratio:16/10}
.story__title{margin-top:10px;font-size:34px;line-height:40px}
.story__title{text-wrap:balance} /* new copy: keeps the last word off a line of its own */
.story__body{margin-top:14px}
.story__sign{margin-top:22px}
.samples__band{padding:56px 0}
.samples__lede{margin-top:16px;max-width:460px}
.samples__steps{margin-top:24px}
.step-no{font-family:var(--font-display);font-style:italic}
.form__submit{margin-top:16px}
.faq-section{padding:56px 0 56px}
.contact-block{margin-top:36px}
.contact-block__lede{margin:6px 0 16px}
.ctile__value{display:block;font-family:var(--font-display);font-size:21px;line-height:27px;margin-top:2px}
.ctile__arrow{margin-left:auto}
.site-footer{padding:48px 50px 32px}
.site-footer__in{max-width:1180px;margin:0 auto}
.site-footer__cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
.site-footer__logo{width:200px}
.site-footer__tagline{margin-top:14px;max-width:280px;color:var(--line)}
.site-footer__links{margin:10px 0 0;line-height:40px}
.site-footer__base{display:flex;justify-content:space-between}
.site-footer__legal{margin:0;color:var(--line)}

/* ---------- 3. live-site additions ---------- */
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* The © line keeps the design's right-hand position while the FSSAI line is commented out. */
.site-footer__base{justify-content:flex-end}

/* Floating WhatsApp button: fixed instead of the board's absolute placement. site.js adds
   .is-tucked while it would sit on top of the free-sample form. */
.wa-float{position:fixed;z-index:10;right:calc(24px + env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));transition:opacity .2s ease,visibility .2s ease}
.wa-float.is-tucked{opacity:0;visibility:hidden}

/* FAQ open/close motion (site.js). The plus turns back as soon as a row starts closing. */
.tlt-faq details.is-animating{overflow:hidden}
.tlt-faq details[open].is-closing summary .tlt-icon{transform:none}

/* Footer credit, under the © line. */
.site-footer__meta{text-align:right}
.site-footer__credit{margin-top:4px}
.site-footer__credit a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.site-footer__credit a:hover{color:var(--milk)}

/* Form messages: the failed-send message sits above the button; the thank-you replaces the fields. */
.form__error{margin-top:20px}
.form__error a{white-space:nowrap}
.form__thanks{outline:none}

/* 404 */
.site-header--solo{grid-template-columns:1fr auto 1fr}
.notfound{display:grid;place-items:center;min-height:calc(100vh - 85px);padding:48px 24px 96px}
.notfound__title{font-size:30px;line-height:36px}

/* ---------- 4. responsive ---------- */

/* Below 1360px the WhatsApp button reaches into the footer's © row (the footer is wider than the
   content column: it ends at 1230px in a 1280px window), so the footer gets enough bottom padding
   that the button never sits on the last line. */
@media (max-width:1359px){
  .site-footer{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}

/* 768–1023px: type scales smoothly from the mobile size (at 768) to the desktop size (at 1024).
   Each clamp() bottoms out at the design system's mobile size, so below 768 the mobile sizes apply. */
@media (max-width:1023px){
  .in{padding:0 clamp(24px,7.03125vw - 22px,50px)}
  .site-header{padding:0 clamp(24px,7.03125vw - 22px,50px)}
  .site-footer{padding-left:clamp(24px,7.03125vw - 22px,50px);padding-right:clamp(24px,7.03125vw - 22px,50px)}

  .tlt-hero-d{font-size:clamp(40px,14.0625vw - 68px,76px);line-height:clamp(46px,13.28125vw - 56px,80px);letter-spacing:-.01em}
  .tlt-section-d{font-size:clamp(30px,7.03125vw - 24px,48px);line-height:clamp(36px,7.03125vw - 18px,54px)}
  .tlt-card-d{font-size:clamp(24px,1.5625vw + 12px,28px);line-height:clamp(30px,1.5625vw + 18px,34px)}
  .story__title{font-size:clamp(30px,1.5625vw + 18px,34px);line-height:clamp(36px,1.5625vw + 24px,40px)}
  .soon__name{font-size:clamp(23px,1.171875vw + 14px,26px);line-height:clamp(29px,1.171875vw + 20px,32px)}
  .ing4 .tlt-ingredient__name{font-size:clamp(21px,1.171875vw + 12px,24px);line-height:clamp(26px,1.5625vw + 14px,30px)}
  .tlt-body-d{font-size:clamp(16px,.390625vw + 13px,17px);line-height:clamp(26px,.78125vw + 20px,28px)}
  .trust{font-size:clamp(16px,.390625vw + 13px,17px)}
  .tlt-hand--lg{font-size:clamp(26px,3.125vw + 2px,34px);line-height:clamp(32px,3.125vw + 8px,40px)}

  .hero{gap:40px}
  .menu2{grid-template-columns:1fr;gap:32px}
  .ing4{gap:16px}
  .story{gap:40px}
  .samples{gap:40px}
  .faq2{grid-template-columns:1fr 1fr;gap:40px}
  .form{padding:28px}
}

/* Below 900px the contact tiles no longer fit beside the questions, so the FAQ stacks:
   heading and contact first, then the questions. The story's three paragraphs also get
   too narrow beside the photo, so it stacks too: photo, then text. */
@media (max-width:899px){
  .faq2{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr 1fr}
  .story{grid-template-columns:1fr;gap:32px}
  .story>div+div{max-width:620px}
}

/* Below 768px: one column, mobile sizes, 24px gutters, 36–48px between sections. */
@media (max-width:767px){
  .wa-float{right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .site-footer{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}

  .tlt-dheader.site-header{height:auto;padding-top:12px}
  .site-header__logo{width:150px}

  .hero{grid-template-columns:1fr;gap:36px;padding:36px 0 40px}
  .hero .tlt-photo{justify-self:center}

  .menu2{padding-top:40px;gap:28px}
  .feature{grid-template-columns:1fr;gap:24px}
  .feature .tlt-photo{width:100%;max-width:240px;justify-self:center}
  .soon{flex-direction:column;align-items:flex-start;gap:4px}

  .band-section{margin-top:40px}
  .inside__band{padding:40px 0 36px}
  .ing4{grid-template-columns:1fr 1fr;gap:28px 16px}
  .inside__facts{flex-direction:column;gap:12px}
  .inside__facts .tlt-allergen{text-align:left;max-width:420px}

  .story{grid-template-columns:1fr;gap:28px;padding-top:40px}
  .samples__band{padding:40px 0}
  .samples{grid-template-columns:1fr;gap:32px}
  .form{padding:24px}
  .faq-section{padding:40px 0}
  .faq2{gap:32px}
  .contact{grid-template-columns:1fr}

  .site-footer{padding-top:40px}
  .site-footer__cols{grid-template-columns:1fr;gap:28px}
  .site-footer__links a{display:inline-flex;align-items:center;min-height:48px}
  .site-footer__base{justify-content:flex-start}
  .site-footer__meta{text-align:left}
}

/* Header: when Menu and What’s inside no longer fit beside the wordmark, the wordmark takes its
   own row and the links sit centred below it. */
@media (max-width:679px){
  .tlt-dheader.site-header{grid-template-columns:1fr;grid-template-areas:"logo" "nav";justify-items:center;row-gap:4px;padding-top:16px}
  .site-header .tlt-dnav{grid-area:nav}
  .site-header__home{grid-area:logo}
  .site-header>span[aria-hidden]{display:none}
}

/* Narrow phones: a little more room inside the contact tiles. */
@media (max-width:399px){
  .ctile{gap:14px;padding:16px 16px}
  .ctile .disc{width:48px;height:48px}
}

/* 404: the header has the wordmark alone, so it keeps the mobile header height instead of stacking. */
.notfound__title{text-wrap:balance}
@media (max-width:767px){
  .tlt-dheader.site-header--solo{grid-template-columns:1fr;grid-template-areas:none;justify-items:center;padding-top:0;min-height:var(--size-header-mobile)}
  .site-header--solo .site-header__home{grid-area:auto}
}
