/* AiCalY website — shared styles. Colors match the app. */

:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-muted: #f4f0ea;
  --border: #ece6dd;
  --text: #1f2a24;
  --text-muted: #5f6964;
  --text-faint: #8f9893;
  --primary: #4e9a6b;
  --primary-strong: #3d8259;
  --primary-soft: #e4f1e7;
  --primary-text: #2f6f48;
  --accent: #6f63e0;
  --accent-soft: #eceafd;
  --peach: #fbeee3;
  --peach-text: #8a5a3b;
  --warning-soft: #fdf1df;
  --green: #4caf7a;
  --blue: #4f7bea;
  --orange: #f2994a;
  --red: #e5534b;
  --purple: #9b6cf0;
  --pink: #e67ab0;
  --shadow: 0 1px 2px rgba(31, 42, 36, 0.04), 0 8px 24px rgba(31, 42, 36, 0.06);
  --radius: 20px;
  --max: 1140px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141816;
    --surface: #1e2320;
    --surface-muted: #262c28;
    --border: #2e3531;
    --text: #eef2ef;
    --text-muted: #a5aea9;
    --text-faint: #76807a;
    --primary: #63b583;
    --primary-strong: #74c493;
    --primary-soft: #21362a;
    --primary-text: #8fd3a9;
    --accent: #8f86f0;
    --accent-soft: #2a2846;
    --peach: #33281f;
    --peach-text: #e8c2a4;
    --warning-soft: #3a2e1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: block; margin-left: 4px; }
  .nav-cta { margin-left: auto; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px 20px;
  }
  .site-header.open .nav-links a { padding: 10px 4px; font-size: 17px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-soft { background: var(--primary-soft); color: var(--primary-text); }
.btn-soft:hover { color: var(--primary-text); filter: brightness(.97); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }

/* ── Sections ── */
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--primary-text); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-muted); max-width: 640px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; display: grid; gap: 14px; justify-items: center; }
.muted { color: var(--text-muted); }

/* ── Hero ── */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 .hl { color: var(--primary); }
.hero .lead { margin: 20px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-faint); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.blob { position: absolute; inset: 8% 4% 4% 8%; background: radial-gradient(60% 60% at 40% 40%, var(--primary-soft), transparent 70%), radial-gradient(50% 50% at 75% 70%, var(--accent-soft), transparent 70%); filter: blur(10px); z-index: -1; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: center; padding-top: 32px; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
}

/* ── Phone mockup ── */
.phone {
  width: 300px; max-width: 100%; aspect-ratio: 9 / 19; background: var(--bg);
  border: 10px solid #1d2420; border-radius: 44px; box-shadow: 0 30px 60px rgba(31, 42, 36, .18);
  overflow: hidden; display: flex; flex-direction: column; padding: 18px 14px 12px; gap: 10px; position: relative;
}
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; background: #1d2420; border-radius: 0 0 14px 14px; }
.ph-date { font-size: 11px; color: var(--text-faint); font-weight: 600; margin-top: 10px; }
.ph-hello { font-size: 18px; font-weight: 800; line-height: 1.2; }
.ph-avatars { display: flex; gap: 8px; }
.ph-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ph-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; display: grid; gap: 9px; }
.ph-row { display: grid; grid-template-columns: 8px 58px 1fr; gap: 8px; align-items: center; font-size: 11.5px; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; }
.ph-time { font-weight: 700; white-space: nowrap; }
.ph-title { font-weight: 700; display: block; line-height: 1.25; }
.ph-sub { color: var(--text-faint); font-size: 10px; }
.ph-chat { margin-top: auto; display: grid; gap: 6px; }
.ph-bubble { font-size: 11px; padding: 8px 10px; border-radius: 14px; max-width: 86%; }
.ph-bubble.me { background: var(--accent); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.ph-bubble.ai { background: var(--accent-soft); color: var(--text); border-bottom-left-radius: 4px; }
.ph-input { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 5px 5px 12px; font-size: 11px; color: var(--text-faint); }
.ph-mic { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }

/* ── Feature grid ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.feature p { margin: 0; color: var(--text-muted); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { margin: 8px 0 0; color: var(--text-muted); font-size: 16px; }
.say { display: inline-block; margin-top: 12px; background: var(--accent-soft); color: var(--text); padding: 8px 12px; border-radius: 12px; font-size: 15px; font-style: italic; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ── Tab Mode showcase ── */
.band { background: var(--surface-muted); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.split ul { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 12px; }
.split li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); }
.split li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E9A6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 3px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.tablet { background: #1d2420; border-radius: 26px; padding: 12px; box-shadow: 0 30px 60px rgba(31, 42, 36, .2); }
.tablet-screen { background: var(--bg); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 1fr 150px; gap: 10px; min-height: 300px; }
.tb-cal { background: var(--surface); border-radius: 12px; padding: 10px; display: grid; grid-template-rows: auto auto 1fr; gap: 8px; }
.tb-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; }
.tb-people { display: grid; grid-template-columns: 28px repeat(4, 1fr); text-align: center; font-size: 9px; font-weight: 700; color: var(--text-muted); gap: 4px; }
.tb-people span:first-child { visibility: hidden; }
.tb-people .face { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 2px; display: grid; place-items: center; font-size: 10px; color: var(--text); }
.tb-grid { position: relative; display: grid; grid-template-columns: 28px repeat(4, 1fr); gap: 4px; background: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px 44px); background-position: 0 6px; }
.tb-hours { display: grid; grid-auto-rows: 44px; font-size: 8px; color: var(--text-faint); }
.tb-col { position: relative; height: 176px; }
.ev { position: absolute; left: 0; right: 0; border-radius: 7px; padding: 4px 5px; font-size: 8.5px; font-weight: 700; line-height: 1.2; overflow: hidden; }
.ev small { display: block; font-weight: 500; opacity: .8; }
.ev.wave { background: linear-gradient(135deg, #a9d6b9 0 28%, #f2c4a2 28% 50%, #c9b6f7 50% 72%, #b7caf6 72%); color: #1f2a24; }
.tb-side { display: grid; gap: 8px; align-content: start; }
.tb-next { background: var(--accent-soft); border-radius: 12px; padding: 10px; font-size: 10px; }
.tb-next b { display: block; font-size: 12px; margin-top: 2px; }
.tb-task { border-radius: 10px; padding: 7px 8px; font-size: 9.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.ring { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; display: grid; place-items: center; font-size: 6.5px; }
@media (max-width: 560px) { .tablet-screen { grid-template-columns: 1fr; } .tb-side { display: none; } }

/* ── Privacy / pricing ── */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .cards-2 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--text-muted); }
.checks li::before { content: "✓"; color: var(--primary); font-weight: 800; }
.price { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 18px; color: var(--text-muted); font-weight: 600; }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--text-faint); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--text-muted); }

/* ── CTA + footer ── */
.cta { text-align: center; background: var(--primary); color: #fff; border-radius: 28px; padding: 64px 24px; display: grid; gap: 16px; justify-items: center; }
.cta .lead { color: rgba(255, 255, 255, .88); margin: 0; }
.cta .btn-primary { background: #fff; color: var(--primary-text); }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--border); margin-top: 88px; font-size: 15px; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── Download page ── */
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .stores { grid-template-columns: 1fr; } }
.store { text-align: center; display: grid; gap: 12px; justify-items: center; }
.store .icon { width: 60px; height: 60px; border-radius: 18px; }
.badge-soon { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--peach-text); background: var(--peach); padding: 4px 10px; border-radius: 999px; }

/* ── Legal pages ── */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 0 0; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal .meta { color: var(--text-faint); font-size: 15px; margin-bottom: 28px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--text-muted); }
.legal th { background: var(--surface-muted); color: var(--text); }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; }
.legal .toc ol { margin: 6px 0 0; }
.legal .callout { background: var(--primary-soft); border-radius: 16px; padding: 18px 22px; color: var(--text); }
.legal .callout p { color: var(--text); margin: 0; }
mark.ph { background: var(--warning-soft); color: inherit; padding: 0 4px; border-radius: 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
