/* ==========================================================================
   trialbell.app homepage (Nov 2026 "Bell Buddy" layout).
   Loaded after styles.css on index.html only. Everything is scoped to
   body.home so no other page changes.
   ========================================================================== */

.home { --r: 24px; --r-sm: 16px; --bw: 2px; --lift: 4px; --band: #FFE8A3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home { --band: #2E2612; } }
:root[data-theme="dark"] .home { --band: #2E2612; }
.home main { overflow-x: clip; }
.home section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.home .wrap { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.home .center { text-align: center; }
.home .kicker {
  display: inline-block; margin: 0 0 var(--sp-4); font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.home h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); line-height: 1.12; margin: 0 0 var(--sp-5); }
.home h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0 0 var(--sp-4); }
.home h3 { margin: 0 0 var(--sp-2); font-size: 1.15rem; line-height: 1.3; }
.home .sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 40rem; margin: 0 0 var(--sp-6); }
.home .center .sub { margin-inline: auto; }

/* Yellow marker behind key words, like the app's highlighted titles. */
.home .mark {
  background: linear-gradient(transparent 52%, var(--fill) 52%, var(--fill) 90%, transparent 90%);
  padding: 0 .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home .mark { background: none; color: var(--fill); } }
:root[data-theme="dark"] .home .mark { background: none; color: var(--fill); }


/* ---------- Sticker surfaces and buttons ---------- */
.home .toon {
  background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: 0 var(--lift) 0 var(--drop);
}
.home .appstore {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .85rem 1.5rem .85rem 1.25rem; border-radius: 999px;
  background: var(--fill); color: var(--ink); border: var(--bw) solid var(--line);
  box-shadow: 0 var(--lift) 0 var(--drop); font-weight: 800; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.home .appstore:hover { background: var(--fill-hover); transform: translateY(-1px); box-shadow: 0 5px 0 var(--drop); }
.home .appstore:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--drop); }
.home .appstore:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.home .appstore .badge-label .small { opacity: .75; font-weight: 700; }
.home .appstore .badge-label .big { font-size: 1.1rem; font-weight: 800; }
.home .cta-meta { margin: var(--sp-4) 0 0; font-size: .92rem; color: var(--text-muted); }
.home .proof { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.home .proof li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--border-strong); font-size: .88rem; font-weight: 650;
}
.home .proof svg { width: 15px; height: 15px; color: var(--good); flex: none; }

/* ---------- Header on the homepage ---------- */
.home .site-header { border-bottom: 1.5px solid color-mix(in srgb, var(--line) 18%, transparent); }
.home .brand .logo { border-radius: 9px; border: 1.5px solid var(--line); }

/* ---------- Hero ---------- */
.home .hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); position: relative; }
.home .hero h1 { font-size: clamp(2.5rem, min(5.6vw, 8.4svh), 4.4rem); }
.home .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.home .hero .lede { font-size: clamp(1.08rem, 1.7vw, 1.22rem); color: var(--text-muted); max-width: 34rem; margin: 0 0 var(--sp-6); }
.home .hero .lede strong { color: var(--text); font-weight: 650; }
.home .hero-art { position: relative; justify-self: center; padding-top: 70px; }

.home .phone {
  position: relative; width: min(300px, 72vw); aspect-ratio: 600 / 1304; border-radius: 44px;
  background: var(--ink); padding: 10px; border: var(--bw) solid var(--line);
  box-shadow: 0 6px 0 var(--drop), 0 30px 60px rgba(60,40,0,.18);
}
.home .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; }
.home .hero .phone { transform: rotate(2deg); }
.home .peek {
  position: absolute; top: 0; left: -38px; width: 150px; z-index: 2;
  animation: tb-swing 4s ease-in-out infinite; transform-origin: 50% 12%;
}
.home .bubble {
  position: absolute; top: 18px; left: 104px; z-index: 3; max-width: 210px;
  padding: .6rem .9rem; border-radius: 18px 18px 18px 6px; font-family: var(--font-hand); font-weight: 700;
  font-size: 1.02rem; line-height: 1.25; background: var(--surface); border: var(--bw) solid var(--line);
  box-shadow: 0 3px 0 var(--drop);
}
@keyframes tb-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- Mood strip: one trial, five moments ---------- */
.home .moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); margin-top: var(--sp-7); }
.home .mood { text-align: center; padding: var(--sp-5) var(--sp-3) var(--sp-5); }
.home .mood img { width: min(130px, 100%); height: auto; margin: 0 auto var(--sp-3); display: block; }
.home .mood .day { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.home .mood .what { display: block; margin-top: .45rem; font-size: .92rem; color: var(--text-muted); font-weight: 600; }
.home .mood.is-ring { background: var(--brand-soft); }
.home .mood.is-key { background: var(--fill); }
.home .mood.is-key .what { color: var(--ink); }
.home .mood.is-key .day { color: var(--ink); }
.home .mood.is-charge .day { color: var(--bad); }
.home .moods-note { margin: var(--sp-6) auto 0; max-width: 44rem; text-align: center; color: var(--text-muted); }

/* ---------- Yellow block with scalloped edges ---------- */
.home .band {
  --scallop: 22px;
  background: var(--band); color: var(--text); position: relative;
  margin-block: var(--scallop);
}
.home .band::before, .home .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--scallop);
  background: radial-gradient(circle at 50% 100%, var(--band) 70%, transparent 71%) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
}
.home .band::before { top: calc(var(--scallop) * -1 + 1px); }
.home .band::after { bottom: calc(var(--scallop) * -1 + 1px); transform: scaleY(-1); }

/* ---------- Face-off: same trial, two endings ---------- */
.home .faceoff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-top: var(--sp-7); }
.home .side { text-align: center; padding: var(--sp-6) var(--sp-5); }
.home .side img { width: min(170px, 60%); height: auto; display: block; margin: 0 auto var(--sp-4); }
.home .side .who { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.home .score {
  display: inline-block; margin: .6rem 0 .5rem; padding: .35rem 1.1rem; border-radius: 999px;
  background: #1E1B16; color: #FFFCF3; border: 2px solid var(--line); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.home .side.is-win .score { background: #2B8F63; color: #fff; }
.home .side p { margin: 0; color: var(--text-muted); }
.home .vs { font-family: var(--font-hand); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: #C4650F; line-height: 1; }
.home .verdict {
  display: table; margin: var(--sp-6) auto 0; padding: .55rem 1.2rem; border-radius: 999px;
  background: #FFCC33; border: 2px solid #1E1B16; box-shadow: 0 3px 0 #1E1B16; font-weight: 800;
}

/* ---------- Add. Get reminded. Cancel. ---------- */
.home .verbs { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.home .steps-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.home .steps-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; padding: var(--sp-5); }
.home .steps-list .n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--fill); color: var(--ink); border: var(--bw) solid var(--line);
}
.home .steps-list p { margin: 0; color: var(--text-muted); }
.home .fan { position: relative; height: clamp(440px, 52vw, 600px); }
.home .fan .phone { position: absolute; top: 50%; left: 50%; width: clamp(170px, 18vw, 230px); }
.home .fan .phone:nth-child(1) { transform: translate(-100%, -46%) rotate(-8deg); z-index: 1; }
.home .fan .phone:nth-child(2) { transform: translate(-50%, -52%); z-index: 3; }
.home .fan .phone:nth-child(3) { transform: translate(0%, -46%) rotate(8deg); z-index: 2; }
.home .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-5); }
.home .chips span {
  padding: .35rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 700;
  background: var(--brand-soft); border: 1.5px solid var(--line);
}

/* ---------- Big stat in place of a testimonial ---------- */
.home .stat-quote { text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.home .stat-quote blockquote {
  margin: 0 auto; max-width: 52rem; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.3; font-weight: 750;
}
.home .stat-quote cite { display: block; margin-top: var(--sp-4); font-style: normal; font-size: .9rem; color: var(--text-muted); }

/* ---------- Feature tiles ---------- */
.home .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-7); }
.home .tile { padding: var(--sp-5); }
.home .tile .ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--brand-soft); border: 1.5px solid var(--line); color: var(--brand);
}
.home .tile .ic svg { width: 22px; height: 22px; }
.home .tile p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.home .tiles-foot { margin-top: var(--sp-5); text-align: center; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.home .plans2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-top: var(--sp-7); align-items: stretch; }
.home .plan2 { padding: var(--sp-6); position: relative; display: flex; flex-direction: column; }
.home .plan2 .label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.home .plan2 .price { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; margin: .4rem 0 .2rem; font-variant-numeric: tabular-nums; }
.home .plan2 .price small { font-size: 1rem; font-weight: 650; color: var(--text-muted); margin-left: .3rem; }
.home .plan2 .for { color: var(--text-muted); margin: 0 0 var(--sp-5); }
.home .plan2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.home .plan2 li { display: flex; gap: .55rem; align-items: flex-start; }
.home .plan2 li svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--good); }
.home .plan2.is-life { background: var(--fill); color: var(--ink); }
.home .plan2.is-life .label, .home .plan2.is-life .for, .home .plan2.is-life .price small { color: #5C5240; }
.home .plan2.is-life li svg { color: var(--ink); }
.home .plan2 .buddy { position: absolute; top: -62px; right: 18px; width: 108px; height: auto; }
.home .fineprint { max-width: 46rem; margin: var(--sp-6) auto 0; text-align: center; font-size: .92rem; color: var(--text-muted); }
.home .offer-cta { margin-top: var(--sp-6); text-align: center; }

/* ---------- Trust links ---------- */
.home .checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.home .check { padding: var(--sp-5); }
.home .check p { margin: 0 0 var(--sp-3); color: var(--text-muted); }
.home .checks.is-3 { grid-template-columns: repeat(3, 1fr); }
.home .check h3 { font-size: 1.1rem; }
.home .moods { list-style: none; padding: 0; }
.home .tile { text-align: left; }

/* ---------- Start here ---------- */
.home .paths2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.home a.path {
  display: flex; flex-direction: column; gap: .35rem; padding: var(--sp-5); text-decoration: none; color: var(--text);
  background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-sm); box-shadow: 0 3px 0 var(--drop);
  transition: transform .12s ease, box-shadow .12s ease;
}
.home a.path:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--drop); }
.home a.path .p-q { font-weight: 750; }
.home a.path .p-a { color: var(--text-muted); font-size: .95rem; }
.home a.path .p-go { margin-top: auto; padding-top: .4rem; color: var(--brand); font-weight: 750; font-size: .93rem; }

/* ---------- FAQ ---------- */
.home .faq-head { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }
.home .faq-head img { width: 92px; height: auto; }
.home .faq2 { max-width: 780px; margin: var(--sp-6) auto 0; display: grid; gap: var(--sp-3); }
.home .faq2 details { border-radius: var(--r-sm); }
.home .faq2 summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.home .faq2 summary::-webkit-details-marker { display: none; }
.home .faq2 summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill); color: var(--ink); border: 1.5px solid var(--line); font-weight: 800; line-height: 1;
}
.home .faq2 details[open] summary::after { content: "−"; }
.home .faq2 summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.home .faq2 .answer { padding: 0 1.25rem 1.1rem; color: var(--text-muted); }
.home .faq2 .answer p { margin: 0; }

/* ---------- Closing ---------- */
.home .closing { text-align: center; }
.home .closing .sleepy { position: relative; display: inline-block; }
.home .closing .sleepy img { width: 170px; height: auto; }
.home .closing .zzz { position: absolute; top: 6px; right: -26px; font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; color: var(--brand); }
.home .closing .zzz span:nth-child(2) { font-size: 1.2rem; margin-left: 2px; }
.home .closing .cta-block { margin-top: var(--sp-5); display: flex; flex-direction: column; align-items: center; }

/* ---------- Footer + sticky bar on the homepage ---------- */
.home .site-footer { border-top: 1.5px solid color-mix(in srgb, var(--line) 18%, transparent); }
.home .mobile-cta { border-top: 1.5px solid var(--line); background: var(--surface); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .home .tiles, .home .checks.is-3 { grid-template-columns: repeat(2, 1fr); }
  .home .paths2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .home .hero-grid, .home .verbs { grid-template-columns: 1fr; }
  .home .hero-copy { text-align: center; }
  .home .hero .lede, .home .sub { margin-inline: auto; }
  .home .proof { justify-content: center; }
  .home .hero .cta-block { display: flex; flex-direction: column; align-items: center; }
  .home .moods { grid-template-columns: repeat(2, 1fr); }
  .home .verbs-copy { text-align: left; }
}
@media (max-width: 640px) {
  .home .faceoff { grid-template-columns: 1fr; }
  .home .side img { width: 116px; }
  .home .mood img { width: 96px; }
  .home .plans2, .home .checks, .home .checks.is-3, .home .paths2, .home .tiles { grid-template-columns: 1fr; }
  .home .plan2.is-life { margin-top: var(--sp-6); }
  .home .fan { height: 430px; }
  .home .fan .phone { width: 172px; }
  .home .peek { left: -18px; width: 120px; }
  .home .bubble { left: 84px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home .peek { animation: none; }
  .home .appstore, .home a.path { transition: none; }
}

/* ---------- First screen: on laptops and desktops the whole hero fits ----------
   Everything in the hero is sized from the window height, so the headline,
   App Store button, QR card and the phone are all visible without scrolling.
   --hh is the space under the sticky header; --pw is the phone's width. */
@media (min-width: 861px) {
  .home .hero {
    --hh: calc(100svh - 66px);
    --pad: clamp(.9rem, 2.6svh, 2.25rem);
    padding-block: var(--pad);
  }
  .home .hero-grid { min-height: calc(min(var(--hh), 920px) - 2 * var(--pad)); align-items: center; }
  .home .hero .kicker { margin-bottom: clamp(.4rem, 1.4svh, 1rem); }
  .home .hero h1 { font-size: clamp(2.1rem, min(4.9vw, 7.4svh), 4.4rem); margin-bottom: clamp(.5rem, 1.8svh, 1.25rem); }
  .home .hero .lede { font-size: clamp(.98rem, 2.4svh, 1.2rem); line-height: 1.55; margin-bottom: clamp(.75rem, 2.4svh, 1.5rem); max-width: 36rem; }
  .home .hero .cta-meta { margin-top: clamp(.4rem, 1.4svh, 1rem); }
  .home .hero .proof { margin-top: clamp(.6rem, 2svh, 1.25rem); flex-wrap: nowrap; gap: .4rem; }
  .home .hero .proof li { padding: .3rem .65rem; font-size: .82rem; white-space: nowrap; }

  .home .hero-art {
    --pw: clamp(170px, calc((min(var(--hh), 920px) - 2 * var(--pad)) * .385), 300px);
    padding-top: calc(var(--pw) * .24);
  }
  .home .hero .phone { width: var(--pw); border-radius: calc(var(--pw) * .147); padding: calc(var(--pw) * .033); }
  .home .hero .phone img { border-radius: calc(var(--pw) * .113); }
  .home .peek { width: calc(var(--pw) * .5); left: calc(var(--pw) * -.13); }
  .home .bubble {
    top: calc(var(--pw) * .06); left: calc(var(--pw) * .35); max-width: calc(var(--pw) * .72);
    font-size: max(12px, calc(var(--pw) * .054)); padding: calc(var(--pw) * .02) calc(var(--pw) * .03);
  }
}
/* A narrow desktop column cannot hold all four pills on one line. */
@media (min-width: 861px) and (max-width: 1180px) {
  .home .hero .proof li:nth-child(4) { display: none; }
}

/* ---------- "Add. Get reminded. Cancel." fits one screen on desktop ----------
   Same idea as the hero: sizes come from the window height so the heading,
   all three steps and the phones are visible together. */
@media (min-width: 861px) {
  .home #how {
    --pad: clamp(.6rem, 2.2svh, 2.5rem);
    min-height: calc(100svh - 66px); display: flex; align-items: center;
    padding-block: var(--pad); scroll-margin-top: 66px;
  }
  .home #how > .container { width: 100%; }
  .home #how .verbs { grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 3vw, 3rem); }
  .home #how .kicker { margin-bottom: clamp(.3rem, 1.2svh, .9rem); }
  .home #how h2 { font-size: clamp(2rem, min(3.3vw, 7.6svh), 3.4rem); margin-bottom: clamp(.4rem, 1.4svh, 1rem); }
  .home #how .sub { font-size: clamp(.95rem, 2.3svh, 1.15rem); margin-bottom: 0; max-width: 40rem; }
  .home #how .steps-list { margin-top: clamp(.6rem, 1.9svh, 1.6rem); gap: clamp(.45rem, 1.4svh, 1rem); }
  .home #how .steps-list li { padding: clamp(.6rem, 1.7svh, 1.25rem) clamp(.9rem, 1.9svh, 1.4rem); gap: .9rem; }
  .home #how .steps-list .n { width: 32px; height: 32px; font-size: .95rem; }
  .home #how .steps-list h3 { font-size: clamp(.98rem, 2.3svh, 1.15rem); margin-bottom: .15rem; }
  .home #how .steps-list p { font-size: clamp(.86rem, 2svh, 1rem); line-height: 1.45; }
  .home #how .chips { margin-top: clamp(.5rem, 1.6svh, 1.25rem); }
  .home #how .chips span { padding: .25rem .75rem; font-size: .84rem; }
  .home #how .cta-meta { margin-top: clamp(.35rem, 1.2svh, 1rem); font-size: .86rem; line-height: 1.45; }
  .home #how .fan { --fh: min(600px, calc(100svh - 66px - 2 * var(--pad))); height: var(--fh); }
  .home #how .fan .phone { width: calc(var(--fh) * .37); }
}

/* Closing call to action: button, price line and QR card centred under the heading. */
.home .closing .cta-block { max-width: 640px; margin-inline: auto; text-align: center; }
.home .closing .cta-meta { text-align: center; margin-inline: auto; }
.home .closing .qr-card { margin-inline: auto; text-align: left; }
