/* Product pages: phone.html, sign.html, calendar.html.
   Uses the tokens and shared components in styles.css (chip, panel, features, board, wo, handoff,
   transcript, inbox, people, facts, trust, faq, finale, appimg). Only what's new to these pages is here. */

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.p-hero { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 7vw, 96px); }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .p-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.p-copy { display: grid; gap: 22px; align-content: start; }
.p-id { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px; }
.p-id .appimg { width: 56px; height: 56px; }
.p-id b { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.p-id b .chip { font-family: var(--f-body); }
.p-id small { color: var(--muted); font-size: var(--t-sm); display: block; }
.p-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.9rem); }
.p-hero h1 .hl { color: var(--green-ink); }
.p-replaces { font-size: var(--t-sm); color: var(--muted); border-left: 3px solid var(--green); padding-left: 14px; }
.p-replaces b { color: var(--ink); font-weight: 600; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.benefit .n { font-family: var(--f-mono); font-size: .72rem; color: var(--green-ink); letter-spacing: .06em; }
.benefit h3 { font-size: 1.12rem; }
.benefit p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Every feature, grouped (on a console band) ---------- */
.fgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fgroup { border: 1px solid var(--chrome-line); background: var(--chrome-2); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; align-content: start; }
.fgroup h3 { font-size: 1.08rem; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fgroup h3 small { font-family: var(--f-mono); font-weight: 400; font-size: .7rem; color: var(--chrome-muted); white-space: nowrap; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .94rem; color: var(--chrome-muted); }
.ticks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: ""; width: 9px; height: 5px; margin-top: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.ticks b { color: var(--chrome-ink); font-weight: 600; }
@media (max-width: 980px) { .fgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fgroups { grid-template-columns: minmax(0, 1fr); } }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--green-ink); }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- On its own, or with EPG Connect OS ---------- */
.ways2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.way2 { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--surface); display: grid; gap: 14px; align-content: start; }
.way2.now { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.way2 header { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.way2 header .appimg { width: 40px; height: 40px; }
.way2 h3 { font-size: 1.3rem; }
.way2 p { color: var(--muted); }
.way2 ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.way2 li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.way2 li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; border: 2px solid var(--green); }
@media (max-width: 820px) { .ways2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- iPhone app ---------- */
.mobile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 820px) { .mobile { grid-template-columns: minmax(0, 1fr); } .mobile .handset { justify-self: center; } }
.handset { width: 280px; max-width: 100%; border-radius: 40px; padding: 10px; background: #0A0B0C; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.hs-screen { border-radius: 31px; overflow: hidden; background: #F5F6F8; color: #2A2D31; display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 9 / 18.5; font-size: 13px; }
.hs-head { background: #2A2D31; color: #fff; padding: 34px 16px 14px; display: grid; gap: 4px; }
.hs-head b { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.hs-head small { color: #A9B0B8; font-size: .74rem; }
.hs-body { padding: 12px; display: grid; gap: 8px; align-content: start; }
.hs-label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #5B636B; padding: 4px 2px 0; }
.hs-row { background: #fff; border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.hs-row b { font-weight: 600; font-size: .84rem; display: flex; justify-content: space-between; gap: 8px; }
.hs-row b span { font-family: var(--f-mono); font-weight: 400; font-size: .66rem; color: #5B636B; white-space: nowrap; }
.hs-row small { color: #5B636B; font-size: .74rem; line-height: 1.35; }
.hs-row.hot { box-shadow: inset 3px 0 0 #12D66B; }
.hs-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hs-btns span { font-size: .68rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #EEF0F3; }
.hs-btns span.go { background: #12D66B; color: #0D1F15; }
.hs-tabs { background: #2A2D31; display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 4px 18px; }
.hs-tabs span { color: rgba(255, 255, 255, .6); font-size: .6rem; text-align: center; display: grid; justify-items: center; gap: 4px; }
.hs-tabs span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: currentColor; opacity: .5; }
.hs-tabs span.on { color: #12D66B; }
.hs-tabs span.on::before { opacity: 1; }
.mobile-copy { display: grid; gap: 18px; }
.mobile-copy .features { margin-top: 6px; }

/* ---------- What's next ---------- */
.next { display: grid; gap: 10px; max-width: 860px; }

/* ---------- Other products ---------- */
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xcard { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; grid-template-rows: auto auto 1fr auto; color: var(--ink); text-decoration: none; }
a.xcard:hover { border-color: var(--green-ink); }
.xcard .appimg { width: 44px; height: 44px; }
.xcard h3 { font-size: 1.1rem; }
.xcard p { color: var(--muted); font-size: .95rem; }
.xcard footer { font-family: var(--f-mono); font-size: .72rem; color: var(--green-ink); }
@media (max-width: 860px) { .others { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Booking page mock (Calendar hero) ---------- */
.bk { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: grid; min-width: 0; }
.bk-head { background: var(--chrome); color: var(--chrome-ink); padding: 18px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.bk-head .av { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; }
.bk-head b { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; display: block; }
.bk-head small { color: var(--chrome-muted); font-size: .8rem; }
.bk-body { padding: 18px 20px; display: grid; gap: 14px; }
.bk-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bk-days span { border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; font-size: .78rem; color: var(--muted); display: grid; gap: 2px; }
.bk-days span b { font-family: var(--f-display); color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.bk-days span.on { border-color: var(--green-ink); background: var(--green-tint); }
.bk-days span.off { opacity: .45; }
.bk-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bk-slots span { border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; font-family: var(--f-mono); font-size: .78rem; }
.bk-slots span.on { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 500; }
.bk-lens { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-lens span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.bk-lens span.on { background: var(--ink); color: var(--bg); }
.bk-label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 420px) { .bk-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Certificate mock (Sign) ---------- */
.cert { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; font-size: .84rem; }
.cert div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.cert dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cert dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .cert div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Two-column feature section (copy + example) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .split-copy { order: 2; }
.split-copy { display: grid; gap: 18px; position: sticky; top: 96px; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split.flip > .split-copy { order: 0; } .split-copy { position: static; } }

/* Feature tiles on a console band */
.console .features { background: var(--chrome-line); border-color: var(--chrome-line); }
.console .feature { background: var(--chrome-2); color: var(--chrome-ink); }
.console .feature p { color: var(--chrome-muted); }
.console .feature .spec { color: var(--green); }

/* Numbered flow (what a signer sees) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: f; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.flow li::before { content: counter(f); font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.flow li.on { background: var(--green-tint); border-color: transparent; }
.flow li.on::before { color: var(--green-ink); }
.flow b { font-weight: 600; font-size: .94rem; display: block; }
.flow small { color: var(--muted); font-size: .8rem; }

/* ---------- Sign-in band ---------- */
.section#sign-in { padding-block: clamp(40px, 5vw, 64px); }
.si-band { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.si-band .appimg { width: 64px; height: 64px; }
.si-band h2 { font-size: var(--t-xl); }
.si-band p { color: var(--chrome-muted); margin-top: 6px; }
.si-band p b { color: var(--chrome-ink); font-weight: 600; }
.si-band .p-actions { justify-content: flex-end; }
.console .btn-ghost { background: transparent; border-color: var(--chrome-line); color: var(--chrome-ink); }
.console .btn-ghost:hover { border-color: var(--chrome-muted); }
@media (max-width: 820px) { .si-band { grid-template-columns: 52px minmax(0, 1fr); } .si-band .appimg { width: 52px; height: 52px; } .si-band .p-actions { grid-column: 1 / -1; justify-content: flex-start; } }
