/* Home page sections. Copied verbatim from the reference design (Docs/reference/index.html). */

/* ---------- Hero ---------- */
.hero{background:linear-gradient(90deg,var(--mint) 0%,var(--mint) 50%,#e9efea 100%);position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;min-height:364px}
.hero-copy{padding:40px 40px 64px max(40px,calc((100vw - var(--max))/2 + 40px));display:flex;flex-direction:column;justify-content:center}
.hero h1{font-size:47px;line-height:1.05;font-weight:800;letter-spacing:-.025em;margin-bottom:16px}
.hero p.lead{font-size:19px;color:#4b524d;max-width:470px;margin-bottom:30px}
.hero-actions{display:flex;gap:18px;flex-wrap:wrap}
.hero-actions .btn-tg{font-size:16px} /* reference: inline style="font-size:16px" */
.hero-art{position:relative;min-height:364px}
.hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:55% 72%} /* keeps the vial tray in frame on wide screens */
.hero-art::before{content:"";position:absolute;inset:0 auto 0 0;width:90px;background:linear-gradient(90deg,var(--mint),rgba(238,245,239,0));z-index:2}

/* ---------- Community band ---------- */
.community{background:var(--green);color:#fff}
.community .wrap{display:flex;align-items:center;gap:28px;min-height:116px;padding-top:24px;padding-bottom:24px}
.community h2{font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.community p{font-size:17px;opacity:.92;margin-top:6px}
.community .actions{margin-left:auto;display:flex;gap:14px}

/* ---------- Path section ---------- */
.path{padding:30px 0 34px}
.path h2{font-size:32px;font-weight:800;letter-spacing:-.025em;margin-bottom:22px}
.features{display:grid;grid-template-columns:repeat(4,1fr)}
.feature{padding:0 22px 6px 12px;border-left:1px solid var(--line)}
.feature:first-child{border-left:0;padding-left:12px}
.feature svg{width:48px;height:48px;color:var(--green);margin-bottom:14px}
.feature h3{font-size:17px;font-weight:600;margin-bottom:2px}
.feature p{font-size:15px;color:var(--muted);line-height:1.5}

/* ---------- Ordering ---------- */
.ordering{background:var(--mint);padding:28px 0 28px}
.ordering .wrap{display:grid;grid-template-columns:1fr 362px;gap:26px;align-items:start}
.ordering h2{font-size:30px;font-weight:800;letter-spacing:-.025em;margin-bottom:26px}
.steps{list-style:none;position:relative}
.step{display:grid;grid-template-columns:50px 1fr;gap:24px;align-items:center;position:relative;padding-bottom:46px}
.step:last-child{padding-bottom:0}
.step:not(:last-child)::after{content:"";position:absolute;left:24px;top:56px;bottom:10px;width:1.5px;background:var(--green)}
.num{width:50px;height:50px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:700;font-size:17px}
.step h3{font-size:20px;font-weight:600;letter-spacing:-.01em}
.step p{font-size:16px;color:var(--muted)}

.app{background:#fff;border:1px solid var(--line);border-radius:6px;padding:14px 14px 18px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.app-head{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.app-head .logo{font-size:18px;gap:6px}
.app-head .logo svg{width:28px;height:28px}
.app-tabs{margin-left:auto;display:flex;gap:18px;font-size:12px;color:#4b524d}
.app-tabs .on{color:var(--green-ink);text-decoration:underline;text-underline-offset:4px;font-weight:600}
.search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:4px;height:32px;padding:0 10px;font-size:11.5px;color:#6a706c;margin-bottom:12px}
.search input{border:0;outline:0;font:inherit;flex:1;color:var(--ink);background:transparent}
.chips{display:flex;gap:5px;margin-bottom:10px;flex-wrap:nowrap}
.chip{font-size:10px;letter-spacing:-.01em;white-space:nowrap;border:1px solid var(--line);border-radius:3px;padding:5px 6px;color:#4b524d;flex-shrink:0}
.chip.on{background:var(--green);border-color:var(--green);color:#fff}
.products{border:1px solid var(--line);border-radius:4px}
.product{display:flex;align-items:center;justify-content:space-between;padding:9px 8px 9px 10px;border-top:1px solid var(--line)}
.product:first-child{border-top:0}
.product b{display:block;font-size:14px;font-weight:600}
.product span{font-size:12px;color:#5b625d}
.add{background:var(--green);color:#fff;font-size:13px;font-weight:600;border-radius:4px;height:32px;width:57px}
.add:hover{background:var(--green-2)}
.open-link{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:14px;font-weight:600;color:var(--green-ink);text-decoration:underline;text-underline-offset:3px}

/* ---------- FAQ ---------- */
.faq{padding:26px 0 20px}
.faq-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
/* Reference: ".faq h2". Scoped to the heading so it cannot override .cta h2 now that .cta lives in components.css. */
.faq-head h2{font-size:32px;font-weight:800;letter-spacing:-.025em}
/* Accordion, .ul-link and the CTA box are shared: see components.css */

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-copy{padding:40px}
  .hero-art{min-height:300px}
  .community .wrap{flex-direction:column;align-items:flex-start}
  .community .actions{margin-left:0;flex-wrap:wrap}
  .features{grid-template-columns:1fr 1fr;row-gap:26px}
  .feature:nth-child(3){border-left:0}
  .ordering .wrap{grid-template-columns:1fr}
}
@media (max-width:600px){
  .hero-copy{padding:32px 16px}
  .hero h1{font-size:36px}
  .features{grid-template-columns:1fr}
  .feature{border-left:0;padding-left:0}
  .faq-head{flex-direction:column;align-items:flex-start;gap:8px}
  .community h2{font-size:28px}
  .community .actions{flex-direction:column;width:100%}
  .community .actions .btn{width:100%}
  /* Fix (not in the reference): the non-wrapping chip row widened the column past the screen
     below ~390px. Let the column shrink and the chips wrap only when they do not fit. */
  .ordering .wrap{grid-template-columns:minmax(0,1fr)}
  .chips{flex-wrap:wrap}
}
@media (max-width:400px){
  .app-tabs{gap:12px}
}
