/* famfone theme. Calm, warm and roomy: the site should feel like the phone. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; color: var(--c-heading); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--c-muted); }
.small { font-size: .9rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--c-soft); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 10px; }
.lede { font-size: 1.15rem; color: var(--c-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--c-btn); background: var(--c-btn); color: var(--c-btn-ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--c-accent); color: var(--c-accent); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.4rem; color: var(--c-heading); text-decoration: none; letter-spacing: -0.02em; }
.logo__mark { width: 34px; height: 34px; }
.logo img { max-height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--c-ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--c-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--c-ink); }
.cart-link:hover { background: var(--c-soft); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-accent); color: var(--c-accent-ink); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--c-ink); cursor: pointer; }
.header-cta { min-height: 40px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 8px 16px 20px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-header.is-open .nav { display: flex; }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy .lede { max-width: 34ch; }
.hero__points { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; }
.hero__points svg { flex: none; width: 22px; height: 22px; color: var(--c-accent); margin-top: 3px; }
.hero__media img { border-radius: calc(var(--radius) * 1.4); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__media { order: -1; } }

/* Phone mockups */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 22px); }
.phone { width: clamp(150px, 17vw, 210px); aspect-ratio: 9 / 18.5; background: #1F1E24; border-radius: 30px; padding: 9px; box-shadow: 0 24px 50px -24px rgba(40, 35, 30, .45); flex: none; }
.phone--back { transform: translateY(-18px) rotate(-3deg); }
.phone--front { transform: rotate(2deg); }
.phone__screen { height: 100%; border-radius: 22px; overflow: hidden; background: #F6F3EE; display: flex; flex-direction: column; font-size: 10px; line-height: 1.3; color: #2D2B33; }
.phone__status { display: flex; justify-content: space-between; padding: 8px 14px 4px; font-size: 9px; font-weight: 700; opacity: .7; }
.phone__title { padding: 6px 14px 8px; font-size: 13px; font-weight: 800; }
.phone__sub { padding: 0 14px 8px; font-size: 9px; opacity: .65; margin-top: -6px; }
.phone__list { padding: 0 10px; display: grid; gap: 6px; }
.phone__row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px; font-weight: 700; }
.phone__dot { width: 22px; height: 22px; border-radius: 8px; flex: none; }
.phone__grid { padding: 4px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone__tile { aspect-ratio: 1; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: 9.5px; }
.phone__tile i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.65); display: block; }
.phone__label { margin-top: auto; padding: 10px 14px 12px; font-size: 9px; text-align: center; opacity: .6; }
.phone--home .phone__screen { background: linear-gradient(180deg, #DCE7E2 0%, #F3EEE6 100%); }
.phone__apps { padding: 18px 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.phone__apps span { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.75); }
.phone__dock { margin-top: auto; margin-inline: 10px; margin-bottom: 12px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.55); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.phone__dock span { aspect-ratio: 1; border-radius: 10px; background: #fff; }
.phone__clock { text-align: center; font-size: 30px; font-weight: 300; padding-top: 18px; letter-spacing: -1px; }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-soft); color: var(--c-accent); margin-bottom: 16px; }
.card__icon svg { width: 26px; height: 26px; }
.card__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.card__list li { display: flex; gap: 8px; align-items: flex-start; font-size: .97rem; }
.card__list svg { width: 18px; height: 18px; flex: none; color: var(--c-accent); margin-top: 4px; }
.mode-card { display: flex; flex-direction: column; }
.mode-card .phone { margin: 4px auto 22px; width: 170px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--steps, 3), 1fr); gap: 20px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 800; margin-bottom: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* Compare band */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs .card--accent { border: 2px solid var(--c-accent); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.x-list, .check-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.x-list li, .check-list li { display: flex; gap: 10px; align-items: flex-start; }
.x-list svg, .check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.x-list svg { color: var(--c-muted); }
.check-list svg { color: var(--c-accent); }

/* Waitlist */
.waitlist { background: var(--c-accent); color: var(--c-accent-ink); border-radius: calc(var(--radius) * 1.4); padding: clamp(32px, 6vw, 64px); text-align: center; }
.waitlist h2 { color: inherit; }
.waitlist p { opacity: .9; max-width: 52ch; margin-inline: auto; }
.waitlist .form-note { font-size: .85rem; opacity: .8; margin-top: 14px; }
.inline-form { display: flex; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.inline-form input[type="email"] { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font: inherit; background: #fff; color: var(--c-ink); }
.inline-form input[type="email"]:focus { outline: none; border-color: var(--c-ink); }
.waitlist .btn { background: var(--c-btn); border-color: var(--c-btn); color: var(--c-btn-ink); min-height: 52px; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }
.form-success { background: rgba(255,255,255,.18); border-radius: 12px; padding: 14px 18px; margin: 20px auto 0; max-width: 480px; font-weight: 700; }
.form-error { background: #FBE9E7; color: #8A2B1E; border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* FAQ */
.faq-group-title { font-size: 1.35rem; margin: 40px 0 8px; }
.faq-group-title:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--c-accent); border-bottom: 2.5px solid var(--c-accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 0 20px; color: var(--c-muted); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* Rich text / page */
.rte h2 { margin-top: 1.6em; font-size: 1.5rem; }
.rte h3 { margin-top: 1.4em; }
.rte ul, .rte ol { padding-left: 1.3em; }
.rte li { margin-bottom: .4em; }
.rte table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.rte th, .rte td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.page-head { padding-block: clamp(40px, 6vw, 80px) 0; }

/* Product */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product__media { position: sticky; top: 92px; display: grid; gap: 12px; }
@media (max-width: 860px) { .product__media { position: static; } }
.product__media-main { background: var(--c-soft); border-radius: var(--radius); padding: 36px 16px; display: flex; justify-content: center; }
.product__media-main img { border-radius: var(--radius); }
.product__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.product__thumbs img { border-radius: 10px; }
.price { font-size: 2rem; font-weight: 800; margin: 4px 0 2px; }
.price s { font-size: 1.1rem; color: var(--c-muted); font-weight: 600; margin-left: 8px; }
.variant-picker { border: 0; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.variant-picker legend { font-weight: 700; margin-bottom: 10px; }
.variant-option { display: block; position: relative; }
.variant-option input { position: absolute; opacity: 0; inset: 0; }
.variant-option__box { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 2px solid var(--c-line); background: var(--c-surface); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.variant-option__box small { display: block; color: var(--c-muted); font-weight: 500; }
.variant-option input:checked + .variant-option__box { border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent); }
.variant-option input:focus-visible + .variant-option__box { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.variant-option__price { font-weight: 800; white-space: nowrap; }
.included { background: var(--c-soft); border-radius: var(--radius); padding: 22px 24px; margin-top: 24px; }
.included h2 { font-size: 1.05rem; margin-bottom: 4px; }
.disclosure { font-size: .88rem; color: var(--c-muted); border-top: 1px solid var(--c-line); margin-top: 24px; padding-top: 18px; }
.product-waitlist { margin-top: 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; }
.product-waitlist .inline-form { margin: 14px 0 0; max-width: none; }
.product-waitlist .inline-form input[type="email"] { border-color: var(--c-line); }
.product-waitlist .form-success { background: var(--c-soft); color: var(--c-ink); margin: 14px 0 0; }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.compare thead th { background: var(--c-soft); font-size: 1.05rem; }
.compare tbody th { font-weight: 600; color: var(--c-muted); width: 34%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* Cart */
.cart-items { list-style: none; padding: 0; margin: 0 0 24px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.cart-item img { border-radius: 12px; }
.cart-item__qty { width: 72px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--c-line); font: inherit; }
.cart-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }

/* Footer */
.site-footer { border-top: 1px solid var(--c-line); padding-block: 48px 32px; margin-top: 0; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(var(--cols, 2), 1fr); gap: 32px; }
.site-footer h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--c-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--c-muted); font-size: .85rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* Password / coming soon page */
.coming-soon { min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; text-align: center; }
.coming-soon__inner { max-width: 640px; }
.coming-soon .logo { display: flex; justify-content: center; margin-bottom: 36px; font-size: 1.5rem; }
.coming-soon .phones { margin: 40px 0 8px; }
.coming-soon .inline-form input[type="email"] { border-color: var(--c-line); }
.coming-soon .form-success { background: var(--c-soft); }
.owner-login { margin-top: 48px; font-size: .85rem; }
.owner-login summary { cursor: pointer; color: var(--c-muted); }
.owner-login form { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.owner-login input { min-height: 40px; border-radius: 10px; border: 1px solid var(--c-line); padding: 0 12px; font: inherit; }

.empty-state { text-align: center; padding-block: 80px; }

/* Real screenshots and recordings in a phone frame */
.phone--shot { padding: 7px; border-radius: 28px; margin: 0; }
.phone--shot .phone__screen { background: #10182E; border-radius: 22px; }
.phone--shot img, .phone--shot video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 20px; }
.screens__item { text-align: center; }
.screens__item .phone { width: min(220px, 100%); margin: 0 auto 18px; }
.screens__item h3 { font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 560px) {
  .screens { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -16px; padding-inline: 16px; }
  .screens__item { scroll-snap-align: center; }
}
.brand { text-transform: none; letter-spacing: normal; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.phone--solo { width: clamp(200px, 24vw, 260px); }
.split .check-list { margin-top: 18px; }
.card--compact { padding: 20px; }

/* Static site: waitlist is an email link until a signup form is hooked up. */
.mailto-cta { margin: 16px 0 0; }
.waitlist .mailto-cta { margin-top: 24px; }
.waitlist .mailto-cta .btn { background: var(--c-btn); border-color: var(--c-btn); color: var(--c-btn-ink); min-height: 52px; }
