/* Glyvello website. "Sunny citrus" brand: near-white, marigold fills with dark text,
   deep honey for accent-coloured text, mint for gentle highlights. System fonts only (no third-party requests). */
:root {
  --bg: #fffdf7; --card: #ffffff; --ink: #231f14; --muted: #6e6753; --line: #efe8d2;
  --accent: #f5b72a; --accent-text: #8a5a00; --on-accent: #231f14; --soft: #fff3cf;
  --fresh: #e9f6ef; --fresh-line: #c9e6d4; --ok: #2f7d52; --warn: #b45309; --bad: #c2263a; --todo: #ffe58a;
  --shadow: 0 18px 40px rgb(60 45 10 / 0.12);
  --font: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 18px;
  color-scheme: light; /* the website is always light, whatever the visitor's system setting (the app keeps dark mode) */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent-text); }
@media (max-width: 720px) { .nav a.opt { display: none; } }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 36px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--accent-text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--fresh); border: 1px solid var(--fresh-line); font-size: 14px; font-weight: 600; color: var(--ink); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- hero ---------- */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; margin-top: 18px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 90%, transparent 90%); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin-top: 18px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero .phone-col { justify-self: center; } }

/* ---------- phone mock (drawn with HTML, mirrors the real home screen) ---------- */
/* iPhone-style frame: titanium edge (gradient border), black bezel, Dynamic Island, side buttons. */
.phone {
  position: relative; width: 300px; max-width: 100%; border-radius: 54px; padding: 9px;
  border: 3px solid transparent;
  background:
    linear-gradient(#0b0a08, #0b0a08) padding-box,
    linear-gradient(140deg, #a29d92 0%, #4a463f 22%, #e3ded2 48%, #55514a 70%, #9a958a 100%) border-box;
  box-shadow: 0 34px 60px -18px rgb(40 30 5 / 0.45), 0 14px 26px -8px rgb(0 0 0 / 0.22);
}
.phone::before, .phone::after { content: ''; position: absolute; width: 4px; background: linear-gradient(90deg, #8a857a, #5a564f); }
.phone::before { left: -6px; top: 104px; height: 26px; border-radius: 3px 0 0 3px; box-shadow: 0 50px 0 #6d685f, 0 98px 0 #6d685f; }
.phone::after { right: -6px; top: 164px; height: 78px; border-radius: 0 3px 3px 0; }
.screen { position: relative; border-radius: 43px; overflow: hidden; background: var(--bg); color: var(--ink); font-size: 12px; line-height: 1.35; padding: 15px 14px 18px; display: flex; flex-direction: column; gap: 9px; }
.screen::before { content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 88px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.sbar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12px; padding: 2px 16px 6px; min-height: 26px; }
.m-head { display: flex; align-items: flex-start; gap: 6px; }
.m-head .t { flex: 1; min-width: 0; }
.m-head b { font-size: 20px; letter-spacing: -0.02em; display: block; }
.m-mut { color: var(--muted); }
.m-ib { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; }
.m-ib svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 10px; }
.m-trial { background: var(--fresh); border-color: var(--fresh-line); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.m-link { color: var(--accent-text); font-weight: 700; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.m-tile { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 9px 4px; text-align: center; font-weight: 700; }
.m-tile span { display: block; font-size: 19px; }
.m-sec { font-weight: 800; font-size: 14px; margin-top: 2px; }
.m-due { display: flex; gap: 9px; background: var(--soft); border-color: var(--accent); }
.m-thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--card); display: grid; place-items: center; font-size: 19px; flex: none; }
.m-btn { display: inline-block; margin-top: 6px; background: var(--accent); color: var(--on-accent); font-weight: 800; border-radius: 9px; padding: 5px 10px; }
.m-row { display: flex; gap: 9px; }
.m-row .m-thumb { background: var(--soft); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }

/* extra mock pieces used by the slideshow screens */
.screen.fixed { height: 572px; }
.m-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.m-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.m-chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.m-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.m-label { font-weight: 800; margin-top: 2px; }
.m-field { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 10px; }
.m-photo { height: 96px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 46px; }
.m-save { display: block; text-align: center; background: var(--accent); color: var(--on-accent); font-weight: 800; border-radius: 11px; padding: 10px; margin-top: 4px; }
.m-hint { color: var(--muted); font-size: 11px; }
.m-lock { text-align: center; padding: 18px 0 8px; }
.m-lock .clock { font-size: 54px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.m-notif { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: flex; gap: 9px; box-shadow: 0 6px 16px rgb(0 0 0 / 0.08); }
.m-appicon { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.m-items { display: flex; flex-direction: column; }
.m-item { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.m-big { font-size: 15px; font-weight: 800; }
/* The report is a printed page, so it stays white in dark mode too. */
.m-paper { background: #ffffff; color: #231f14; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.m-paper .hd { background: #fff7df; border-top: 4px solid #f5b72a; border-radius: 9px; padding: 8px 10px; }
.m-paper .hd b { font-size: 15px; }
.m-paper .muted { color: #6e6753; font-size: 10px; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.m-stats div { border: 1px solid #efe8d2; border-radius: 8px; padding: 5px 6px; }
.m-stats b { display: block; font-size: 13px; }
.m-prow { display: grid; grid-template-columns: 48px 1fr 30px auto; gap: 5px; align-items: center; padding: 5px 0; border-bottom: 1px solid #efe8d2; font-size: 10.5px; }
.m-pill { color: #fff; border-radius: 999px; padding: 2px 6px; font-size: 8.5px; font-weight: 800; white-space: nowrap; }

/* ---------- hero slideshow ---------- */
.show { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage { position: relative; width: 324px; max-width: 100%; height: 610px; isolation: isolate; }
/* Soft marigold and mint glow behind the phone so it lifts off the page. */
.stage::before { content: ''; position: absolute; inset: 30px -70px 0; z-index: -1; filter: blur(30px); opacity: 0.85;
  background: radial-gradient(closest-side at 40% 40%, color-mix(in srgb, var(--accent) 95%, transparent), transparent),
              radial-gradient(closest-side at 70% 72%, color-mix(in srgb, var(--fresh-line) 90%, transparent), transparent); }
.slide { position: absolute; inset: 0; margin: 0; display: flex; justify-content: center; opacity: 0; transition: opacity 0.6s ease; }
.slide.is-active { opacity: 1; }
.open-lb { position: absolute; inset: 0 12px; border: 0; background: transparent; cursor: zoom-in; border-radius: 54px; }
.open-lb:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.caption { min-height: 2.8em; text-align: center; font-weight: 700; max-width: 30ch; }
.caption small { display: block; color: var(--muted); font-weight: 500; font-size: 14px; }
.show-ctrl { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.dots button[aria-current="true"] { width: 26px; background: var(--accent); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .slide, .dots button { transition: none; } }
@media (max-width: 380px) { .stage { transform: scale(0.9); transform-origin: top center; height: 550px; } }

/* ---------- lightbox ---------- */
.lb { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--ink); }
.lb::backdrop { background: rgb(20 16 8 / 0.82); backdrop-filter: blur(4px); }
.lb-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 56px 16px 24px; }
.lb-stage { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.lb-phone { flex: none; }
.lb-phone > .phone { transform-origin: top left; }
.lb-caption { color: #fffdf7; text-align: center; font-weight: 700; font-size: 18px; max-width: 34ch; }
.lb-caption small { display: block; color: #d9cfb6; font-weight: 500; font-size: 15px; margin-top: 2px; }
.lb .icon-btn { width: 52px; height: 52px; background: #fffdf7; color: #231f14; border-color: transparent; flex: none; }
.lb .icon-btn svg { width: 22px; height: 22px; }
.lb .icon-btn:hover { background: #f5b72a; }
.lb-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.lb-count { color: #d9cfb6; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .lb-stage .icon-btn { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* ---------- sections ---------- */
section { padding-block: 56px; scroll-margin-top: 64px; }
[id] { scroll-margin-top: 80px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.sec-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-top: 8px; }
.sec-lede { color: var(--muted); font-size: 19px; margin-top: 12px; max-width: 56ch; }

.table-band { background: var(--soft); border-block: 1px solid var(--line); }
.table-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .table-band .wrap { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; stroke: var(--accent-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; counter-reset: step; list-style: none; padding: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }

.ranges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.range { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.plan.best { border: 2px solid var(--accent); }
.plan .name { font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.plan .tag { font-size: 12px; font-weight: 800; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 3px 9px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan p { color: var(--muted); font-size: 15px; }
.trial { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.promise { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .promise { grid-template-columns: minmax(0, 1fr); } }
.promise li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.promise svg { width: 22px; height: 22px; stroke: var(--ok); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }

.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-text); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

.cta-band { background: var(--fresh); border: 1px solid var(--fresh-line); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); }

/* ---------- long-form pages (privacy, contact) ---------- */
.page { padding-block: 48px 24px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.page .updated { color: var(--muted); margin-top: 10px; }
.prose { margin-top: 28px; }
.prose h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.prose .summary { background: var(--soft); border-radius: var(--radius); padding: 20px 24px; margin-top: 20px; }
.table-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft); font-size: 14px; letter-spacing: 0.02em; }
.prose tr:last-child td { border-bottom: 0; }
mark.todo { background: var(--todo); color: inherit; border-radius: 4px; padding: 0 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
@media (max-width: 680px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact-card h2 { font-size: 20px; }
.contact-card p { color: var(--muted); }
.email { font-weight: 800; font-size: 18px; word-break: break-all; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.steps-list li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
