/* Landing page sections (uses tokens from base.css). */

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.nav-link { color: var(--text); font-size: 0.93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a.nav-link:hover { color: var(--ink); background: var(--bg-sunken); text-decoration: none; }
@media (max-width: 720px) { .site-nav a.nav-link { display: none; } }

/* Signed-in state (set by auth.js) */
.when-signed-in { display: none !important; }
.signed-in .when-signed-in { display: inline-flex !important; }
.signed-in .when-signed-out { display: none !important; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); background:
  radial-gradient(900px 420px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 920px) { .hero .container { grid-template-columns: 1fr; } }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text); max-width: 34em; margin: 18px 0 28px; }

.signin-card { display: grid; gap: 12px; max-width: 340px; }
.signin-card .note { font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }
.g-signin { min-height: 44px; }
.ms-signin {
  position: relative; display: flex; align-items: center; justify-content: center; width: 300px; max-width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #dadce0; border-radius: 4px; background: #fff; color: #3c4043; cursor: pointer;
  font: 500 14px/1 Roboto, var(--font);
}
.ms-signin:hover { background: #f8faff; border-color: #d2e3fc; }
.ms-signin svg { position: absolute; left: 12px; }  /* same layout as Google's button: icon left, label centred */

/* Product preview (pure HTML/CSS illustration) */
.preview { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.preview-title { font-weight: 650; color: var(--ink); }
.preview-sub { font-size: 0.82rem; color: var(--muted); }
.preview-list { list-style: none; margin: 0; padding: 6px 0; }
.preview-row { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; padding: 10px 20px; }
.preview-row + .preview-row { border-top: 1px dashed var(--line); }
.date-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--bg-sunken); line-height: 1.1; }
.date-tile b { font-size: 1.15rem; color: var(--ink); }
.date-tile small { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.slot { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.slot-why { font-size: 0.8rem; color: var(--muted); }
.preview-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 0.82rem; }
.bubble { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0 auto; max-width: 330px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 0.88rem; }
.bubble .avatar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.8rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { font-size: 1.08rem; color: var(--text); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.problem { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.problem h3 { margin-bottom: 6px; }
.problem p { margin: 0; color: var(--text); font-size: 0.95rem; }

.steps { counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 9px; background: var(--accent); color: var(--accent-contrast); font-weight: 700; }
.step p { margin: 0; font-size: 0.95rem; }

.feature { padding: 4px 0; }
.feature .icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feature .icon svg { width: 20px; height: 20px; }
.feature p { margin: 0; font-size: 0.95rem; }

/* Comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 0.82rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 18%; }
.compare .us { background: var(--accent-soft); color: var(--ink); font-weight: 650; }
@media (max-width: 600px) {
  .compare { font-size: 0.82rem; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 21%; }
  .compare thead th { font-size: 0.72rem; }
}
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--muted); }

/* Pricing */
.price-card { max-width: 440px; margin: 0 auto; padding: 32px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price b { font-size: 3rem; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.checklist { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803d'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 8.2-8.2-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* Final CTA + footer */
.cta { text-align: center; }
.cta .signin-card { margin: 26px auto 0; justify-items: center; }
.site-footer { padding: 32px 0 44px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.price-grid .price-card { max-width: none; margin: 0; padding: 24px; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.center { text-align: center; }

/* Pricing: Free, Starter, Premium on the first row; Corporate and Enterprise centred on the second */
.price-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.price-grid > * { grid-column: span 2; }
.price-grid > :nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr 1fr; } .price-grid > *, .price-grid > :nth-child(4) { grid-column: auto; } }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }

/* Billing period toggle (pricing) */
.billing-toggle { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-sunken, #f1f5f9); border: 1px solid var(--line); margin-top: 16px; }
.billing-toggle a { padding: 6px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.billing-toggle a:hover { text-decoration: none; color: var(--ink); }
.billing-toggle a.active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.price-card .per-month { font-size: 0.85rem; margin: -2px 0 10px; min-height: 1.2em; }
.price-card .btn { margin-top: auto; }
.price-card { display: flex; flex-direction: column; }

/* Signed out: what happens after choosing a plan */
.plan-choice { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft, #eef2ff); color: var(--ink); font-size: 0.95rem; max-width: 420px; }
.plan-choice[hidden] { display: none !important; }
.plan-note { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; text-align: center; }
