/* Altu — shared site styles.
   Brand from the Quantified Coaching deck: Newsreader for display (italics for
   emphasis), Archivo for body, IBM Plex Mono for labels and buttons. Square corners. */

:root {
  --cream: #FBF8F1;        /* page ground */
  --ink: #14181F;          /* charcoal */
  --teal: #006F7C;         /* accent */
  --teal-light: #7FD6E0;   /* accent on charcoal */
  --slate: #59616C;        /* body text */
  --muted: #8A9199;        /* captions */
  --rule: #DAD3C4;         /* hairlines */
  --card: #F2ECDE;
  --card-deep: #E4DCC9;
  --tan: #CDC3AC;          /* chip outlines */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
strong, b { font-weight: 700; color: var(--ink); }

/* Newsreader's 16pt cut, the one the deck uses at every size. */
h1, h2, h3, .serif {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-optical-sizing: none; font-variation-settings: "opsz" 16;
}
h1 em, h2 em, h3 em, .serif em { font-style: italic; color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono); font-weight: 700; font-size: 12px; line-height: 1.3;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-family: var(--mono); font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn-outline { background: transparent; color: var(--ink); min-height: 44px; padding: 0 18px; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); min-height: 54px; padding: 0 32px; }
.btn-cream:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-cream:focus-visible { outline-color: var(--cream); }
/* Filled twin of .btn-outline, for a second nav button. */
.btn-nav { min-height: 44px; padding: 0 18px; }
/* Outlined twin of .btn-cream, for a second button on the teal call to action. */
.btn-cream-outline { background: transparent; color: var(--cream); border-color: var(--cream); min-height: 54px; padding: 0 32px; }
.btn-cream-outline:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-cream-outline:focus-visible { outline-color: var(--cream); }

/* ── Nav ──────────────────────────────────────────────── */
.nav { border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand span { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.24em; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { white-space: nowrap; }
.nav-inner .brand { flex-shrink: 0; }   /* never squeeze the logo under the buttons */

/* ── Home ─────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.hero { padding: clamp(88px, 13vw, 168px) 0 clamp(72px, 10vw, 128px); text-align: center; }
.hero h1 { font-size: clamp(3.1rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.02em; }
.hero p {
  max-width: 36em; margin: clamp(24px, 3vw, 36px) auto 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--slate);
}

/* Program overview table */
.overview { border-top: 1px solid var(--ink); }
.overview-row {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.overview-row:last-child { border-bottom: 0; }
.overview-row dt { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--teal);
  font-optical-sizing: none; font-variation-settings: "opsz" 16; }
.overview-row dd { font-size: 1.08rem; line-height: 1.65; color: var(--slate); padding-top: 3px; }

/* Charcoal quote band */
.band { background: var(--ink); color: var(--cream); padding: clamp(80px, 11vw, 136px) 0; text-align: center; }
.band blockquote p {
  font-family: var(--serif); font-weight: 400; color: var(--cream);
  font-optical-sizing: none; font-variation-settings: "opsz" 16;
  font-size: clamp(1.9rem, 4.1vw, 3.4rem); line-height: 1.2; letter-spacing: -0.01em;
}
.band blockquote em { font-style: italic; color: var(--teal-light); }
.band cite {
  display: block; margin-top: clamp(24px, 3vw, 36px); font-style: normal;
  font-family: var(--mono); font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 0.22em; text-transform: uppercase; color: #C9CDD2;
}

/* Day 1 / 7 / 30 */
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.day { display: flex; flex-direction: column; padding: 30px 28px; background: var(--card); border: 1px solid var(--tan); }
.day.deep { background: var(--card-deep); }
.day.dark { background: var(--ink); border-color: var(--ink); }
.day .eyebrow { margin-bottom: 16px; }
.day.dark .eyebrow { color: var(--teal-light); }
.day h3 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 12px; }
.day.dark h3 { color: var(--cream); }
.day p { font-size: 15.5px; line-height: 1.6; color: var(--slate); }
.day.dark p { color: #D5D8DC; }
.day-visual { margin-top: auto; padding-top: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips span {
  font-family: var(--mono); font-size: 11.5px; line-height: 1; color: var(--slate);
  border: 1px solid var(--tan); padding: 7px 9px;
}
.day.dark .chips span { color: var(--cream); border-color: #5A626C; }
.chips .arrow { border: 0; padding: 0; color: var(--teal-light); font-size: 14px; }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 74px; }
.bars i { display: block; background: #C4BAA6; }
.bars i.on { background: var(--teal); }
.bar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 7px; border-top: 1px solid #B8AE99; padding-top: 6px; }
.bar-days span { font-family: var(--mono); font-size: 10px; text-align: center; color: var(--slate); }
.bar-days span.on { color: var(--teal); font-weight: 700; }

/* Your questions: 2×2 with hairline dividers */
.questions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.question { padding: 36px 40px 40px 0; border-bottom: 1px solid var(--rule); }
.question:nth-child(even) { padding: 36px 0 40px 40px; border-left: 1px solid var(--rule); }
.question:nth-last-child(-n+2) { border-bottom: 0; }
.question svg { width: 30px; height: 30px; margin-bottom: 20px; }
.question h3 { font-size: 1.6rem; line-height: 1.22; margin-bottom: 12px; }
.question p { font-size: 1rem; line-height: 1.65; color: var(--slate); max-width: 32em; }

/* Teal call to action */
.pilot { background: var(--teal); color: var(--cream); text-align: center;
  padding: clamp(96px, 13vw, 160px) 0; margin: clamp(24px, 4vw, 48px) 0 clamp(88px, 11vw, 136px); }
.pilot h2 { color: var(--cream); font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.015em; }
.pilot p { margin: 18px auto 0; max-width: 32em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #E3F1F2; }
.pilot .btn { margin-top: 36px; }
.pilot-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
.pilot .pilot-actions .btn { margin-top: 0; }

/* ── Inner pages (Mac, export, support, privacy) ──────── */
.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
.page-hero .sub { max-width: 40em; margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate); }
.page-hero .btn { margin-top: 32px; }
.caption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.version { margin-top: 14px; }
.inner-section { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.inner-section + .inner-section { border-top: 1px solid var(--rule); }
.inner-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin-bottom: 10px; }
.inner-section .lead { color: var(--slate); margin-bottom: 28px; }

.steps-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 52em; margin-top: 28px; }
.setup-step { background: var(--card); border: 1px solid var(--tan); padding: 28px clamp(20px, 3vw, 32px); }
.setup-step h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 14px; }
.setup-step ol { padding-left: 1.3em; font-size: 15.5px; color: var(--slate); line-height: 1.65; }
.setup-step ol li + li { margin-top: 8px; }
.setup-step ol li::marker { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.setup-step p { font-size: 15.5px; color: var(--slate); margin-bottom: 12px; }
.setup-step .step-sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin: 22px 0 10px;
}
.shot { margin-top: 20px; border: 1px solid var(--tan); background: #fff; width: 100%; max-width: min(100%, 640px); }
.note { max-width: 52em; padding: 18px 22px; background: #E4EEEE; border: 1px solid #B6D9DD; font-size: 15px; color: var(--slate); }
code.cmd {
  display: block; margin: 10px 0 4px; padding: 12px 14px; background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 13px; overflow-x: auto; white-space: nowrap;
}

.faq { max-width: 52em; border-top: 1px solid var(--ink); margin-top: 28px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-question {
  width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
}
.faq-icon { font-family: var(--mono); color: var(--teal); font-size: 1.2rem; transition: transform 0.2s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 0 22px; font-size: 15.5px; color: var(--slate); max-width: 44em; }
.faq-answer-inner a, .prose a { color: var(--teal); }

/* Support form */
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form { max-width: 44em; margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.form-group input, .form-group select, .form-group textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--tan); border-radius: 0; padding: 11px 12px; min-height: 46px;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.form-submit { margin-top: 22px; }
.form-success { display: none; margin-top: 20px; }
.form-success h3 { font-size: 1.5rem; }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer p { font-size: 13.5px; color: var(--slate); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.footer-links a, .footer-links span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer-links a:hover { color: var(--teal); }

/* ── Responsive ───────────────────────────────────────── */
@media (min-width: 1000px) {
  .band blockquote p, .one-line { white-space: nowrap; }
}
@media (max-width: 900px) {
  .days { grid-template-columns: 1fr; }
  .overview-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 700px) {
  .brand img { width: 34px; }
  .questions { grid-template-columns: 1fr; }
  .question, .question:nth-child(even) { padding: 30px 0 32px; border-left: 0; }
  .question:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
/* Two nav buttons on a phone: tighten them so both fit on one line each;
   on the narrowest phones drop the nav "Try the demo" (it is still in the
   call-to-action section). Breakpoints measured in renders from 320 to 1280px. */
@media (max-width: 459px) {
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 8px; letter-spacing: 0.06em; }
}
@media (max-width: 359px) {
  .nav-demo { display: none; }
}
