/* Calendank website. System type, one accent, black on white, lots of air. Nothing loads from outside. */
:root { --ink: #1A1A1F; --muted: #5F6068; --faint: #A6A6AE; --paper: #FFFFFF; --soft: #F6F7FB; --line: #E6E7EE; --accent: #4F5BD5; --accent-ink: #3B45B8; --tint: #EEF0FC; --onaccent: #FFFFFF; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 720px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--onaccent); font-weight: 700; font-size: 17px; padding: 15px 26px; border-radius: 10px; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79, 91, 213, .28); }
.btn.big { font-size: 18px; padding: 17px 30px; }
.btn.small { font-size: 15px; padding: 10px 16px; border-radius: 8px; }
.btn.light { background: var(--onaccent); color: var(--accent-ink); }
.btn.light:hover { background: var(--tint); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(26, 26, 31, .06); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-link { display: block; }
.logo { display: block; height: 28px; width: auto; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
h1 { font-size: 40px; letter-spacing: -.03em; margin-bottom: 16px; }
.sub { font-size: 19px; line-height: 1.5; color: #33343B; margin-bottom: 24px; }
.micro { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 12px; max-width: 460px; }
.caption { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 14px; text-align: center; }

/* The demo: a phone showing a real conversation and the day it produced */
.phone { max-width: 380px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px rgba(26, 26, 31, .14), 0 2px 6px rgba(26, 26, 31, .06); overflow: hidden; }
.phead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pbrand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.pdate { color: var(--muted); }
.chat { padding: 12px 14px 4px; min-height: 178px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 90%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.msg.you { align-self: flex-end; background: var(--accent); color: var(--onaccent); border-bottom-right-radius: 4px; min-height: 36px; }
.msg.cal { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.dots { align-self: flex-start; background: var(--soft); padding: 12px 14px; display: none; gap: 5px; }
.msg.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: block; animation: bounce 1s infinite; }
.msg.dots i:nth-child(2) { animation-delay: .15s; }
.msg.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.full { display: none; }
.caret { display: none; width: 2px; height: 15px; background: #fff; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { to { visibility: hidden; } }
/* With JavaScript, the reply and the planned blocks wait for the animation. Without it, everything shows. */
.js .msg.you { opacity: 0; transition: opacity .3s; }
.js .phone.typing .msg.you, .js .phone.thinking .msg.you, .js .phone.answered .msg.you, .js .phone.done .msg.you { opacity: 1; }
.js .msg.cal { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.js .phone.typing .caret { display: inline-block; }
.js .phone.thinking .msg.dots { display: flex; }
.js .phone.answered .msg.cal, .js .phone.done .msg.cal { opacity: 1; transform: none; }
.js .blk.plan { opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .45s ease var(--d), transform .45s ease var(--d); }
.js .phone.done .blk.plan { opacity: 1; transform: none; }
.day { position: relative; height: 348px; margin: 6px 14px 14px; }
.hr { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.hr span { position: absolute; left: 0; top: -8px; font-size: 10px; color: var(--muted); background: var(--paper); padding-right: 4px; }
.blk { position: absolute; left: 44px; right: 0; border: 1.5px solid var(--ink); border-radius: 4px; color: #fff; padding: 3px 8px; overflow: hidden; line-height: 1.2; }
.blk b { display: block; font-size: 12px; font-weight: 700; }
.blk small { display: block; font-size: 10.5px; opacity: .92; }
.blk.thin { padding: 1px 8px; display: flex; align-items: center; gap: 6px; }
.blk.thin b, .blk.thin small { display: inline; }

/* Benefits */
.benefits { background: var(--soft); padding: 56px 0; }
.benefits h2, .faq h2 { font-size: 30px; text-align: center; margin-bottom: 28px; }
.cards { display: grid; gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(26, 26, 31, .08); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: #33343B; font-size: 16px; }

/* Accent band */
.band { background: var(--accent); color: var(--onaccent); padding: 56px 0; text-align: center; }
.band h2 { font-size: 30px; margin-bottom: 10px; }
.band p { font-size: 17px; opacity: .92; max-width: 520px; margin: 0 auto 22px; }

/* Questions */
.faq { padding: 56px 0 40px; }
.faq .item { border-bottom: 1px solid var(--line); }
.faq .q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; font: inherit; font-weight: 600; font-size: 18px; color: var(--ink); padding: 18px 0; cursor: pointer; }
.faq .q:hover { color: var(--accent-ink); }
.chev { flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s; margin-right: 4px; }
.item.open .chev { transform: rotate(225deg); }
.faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq .a > div { overflow: hidden; }
.faq .a p { color: #33343B; padding-bottom: 18px; font-size: 16.5px; }
.item.open .a { grid-template-rows: 1fr; }

/* Final ask */
.final { padding: 40px 0 64px; text-align: center; }
.final h2 { font-size: 32px; margin-bottom: 8px; }
.final p { color: var(--muted); margin-bottom: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 44px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; justify-content: center; }
.foot .mark { width: 22px; height: 22px; }

/* Fade up as sections come into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--delay, 0ms), transform .6s ease var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }

/* Terms and Privacy pages */
.wrap { max-width: 640px; margin: 0 auto; padding: 0 22px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 6px; }
.brand { display: block; }
.brand img { display: block; height: 26px; width: auto; }
.top a.signin { font-weight: 600; font-size: 15px; }
.legal h1 { font-size: 32px; margin: 26px 0 6px; }
.legal h2 { margin-top: 28px; font-size: 20px; }
.legal p { margin-bottom: 14px; }
.legal .date { color: var(--muted); font-size: 15px; }
.legal footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .card, .btn, .faq .a, .chev, .msg.cal, .blk.plan { transition: none; }
  .msg.dots i, .caret { animation: none; }
}

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header { position: static; }
  .reveal, .js .msg.you, .js .msg.cal, .js .blk.plan { opacity: 1; transform: none; }
  .typed, .caret, .msg.dots { display: none !important; }
  .full { display: inline; }
  .faq .a { grid-template-rows: 1fr; }
  .chev { transform: rotate(225deg); }
  .phone { box-shadow: none; }
  .card, .phone, .item { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}

@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .hero { padding: 64px 0 40px; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  h1 { font-size: 54px; }
  .sub { font-size: 20px; }
  .benefits, .faq, .band { padding: 72px 0; }
  .benefits h2, .faq h2, .band h2 { font-size: 34px; }
  .final h2 { font-size: 36px; }
}
