/* Metutela PTDE pilot site. Palette from the Metutela brand colour palette v1:
   80% neutrals, 15% cyan, 5% semantic colours. */
:root {
  --navy: #071a33;
  --navy-2: #0f2a4d;
  --cyan: #00c2ff;
  --cyan-ink: #006f94;       /* cyan dark enough for text on white */
  --mist: #f8fafc;
  --ink: #071a33;
  --ink-soft: #4b5b70;
  --rule: #dde4ec;
  --white: #ffffff;
  --green: #15c47e;
  --amber: #f4b860;
  --coral: #ff5a5f;
  --error: #c2262b;
  --display: "Sora", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan-ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-ink); }

.preview-banner { background: #fff4d6; color: #6b4e00; font-size: 0.85rem; text-align: center; padding: 8px 20px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.site-header img { width: 168px; display: block; }
.site-header .cta-link { font-weight: 700; font-size: 0.95rem; color: var(--navy); text-decoration: none; border: 1.5px solid var(--navy); border-radius: 999px; padding: 8px 16px; }
.site-header .cta-link:hover { background: var(--navy); color: var(--white); }

/* Hero: navy band with the brand's cyan arc */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 34px; width: min(820px, 120%); height: 220px;
  transform: translateX(-50%); border-top: 6px solid var(--cyan); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: 0.9;
}
.hero .wrap { position: relative; padding-block: 104px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; max-width: 16ch; }
.hero .lede { color: #c8d4e3; font-size: 1.15rem; max-width: 40rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

.btn {
  font: inherit; font-weight: 800; font-size: 1.02rem; border: 0; border-radius: 999px; cursor: pointer;
  padding: 14px 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  background: var(--cyan); color: var(--navy);
}
.btn:hover { background: #33ceff; }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn.navy { background: var(--navy); color: var(--white); width: 100%; border-radius: 12px; }
.btn.navy:hover { background: var(--navy-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
.section { padding-block: 72px; }
.section.mist { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 42rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* 44-hour track: one cell per hour */
.track-card { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.track-total { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); }
.track-total strong { font-size: 3rem; font-weight: 700; line-height: 1; }
.track-total span { color: var(--ink-soft); font-family: var(--body); font-weight: 600; }
.track { display: grid; grid-template-columns: repeat(44, minmax(0, 1fr)); gap: 3px; }
.track i { height: 34px; border-radius: 3px; background: var(--c); }
.track i.night { background: repeating-linear-gradient(135deg, var(--navy) 0 4px, var(--navy-2) 4px 8px); }
@media (max-width: 560px) { .track { grid-template-columns: repeat(22, minmax(0, 1fr)); } .track i { height: 22px; } }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; }
.legend div { display: grid; grid-template-columns: 14px 1fr; gap: 4px 10px; align-items: start; }
.legend b { width: 14px; height: 14px; border-radius: 3px; margin-top: 5px; background: var(--c); }
.legend b.night { background: repeating-linear-gradient(135deg, var(--navy) 0 3px, var(--navy-2) 3px 6px); }
.legend strong { font-family: var(--display); font-size: 1rem; }
.legend span { grid-column: 2; color: var(--ink-soft); font-size: 0.92rem; }
.legend .hours { font-variant-numeric: tabular-nums; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 700; color: var(--cyan-ink); font-size: 0.95rem; border-top: 3px solid var(--cyan); padding-top: 12px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* Session example */
.insight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .insight { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.session { background: var(--navy); color: var(--white); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(7, 26, 51, 0.25); }
.session .tag { align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0, 194, 255, 0.15); color: var(--cyan); border-radius: 999px; padding: 4px 10px; }
.session-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.session-top h3 { font-size: 1.15rem; }
.session-top p { color: #9fb1c8; font-size: 0.9rem; }
.score { text-align: right; font-family: var(--display); }
.score strong { display: block; font-size: 2.4rem; line-height: 1; }
.score span { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--green); font-weight: 700; }
.reads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.reads li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: start; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px 14px; }
.reads li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--dot); }
.reads strong { display: block; font-size: 0.95rem; }
.reads span { color: #b8c6d8; font-size: 0.88rem; }
.confirm { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; font-size: 0.9rem; color: #c8d4e3; }
.confirm b { color: var(--white); }
.confirm span:last-child { white-space: nowrap; }
.insight-copy { display: flex; flex-direction: column; gap: 16px; }
.insight-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.insight-copy p { color: var(--ink-soft); }
.insight-copy ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }

/* App note */
.app-note { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 22px; max-width: 46rem; }
.app-note img { border-radius: 14px; }
.app-note h3 { font-size: 1.05rem; margin-bottom: 4px; }
.app-note p { color: var(--ink-soft); font-size: 0.95rem; }

/* Sign-up */
.signup { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .signup { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.signup-copy { display: flex; flex-direction: column; gap: 14px; }
.signup-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.signup-copy p { color: var(--ink-soft); }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 28px; box-shadow: 0 12px 34px rgba(7, 26, 51, 0.08); }
@media (max-width: 480px) { .card { padding: 20px; } }
form { display: flex; flex-direction: column; gap: 16px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .hint { color: var(--ink-soft); font-size: 0.82rem; }
.field input { font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid var(--rule); border-radius: 10px; padding: 11px 12px; background: var(--white); width: 100%; }
.field input:focus { border-color: var(--cyan-ink); }
.field.invalid input { border-color: var(--error); }
.field .err { color: var(--error); font-size: 0.82rem; }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 10px; align-items: start; font-size: 0.9rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--navy); }
.check.invalid { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecec; color: var(--error); border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; }
.small { font-size: 0.82rem; color: var(--ink-soft); }
.done { display: flex; flex-direction: column; gap: 14px; }
.done .tick { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(21, 196, 126, 0.14); color: #0d8a57; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.done h3 { font-size: 1.4rem; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb1c8; font-size: 0.85rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; padding-block: 28px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: #c8d4e3; }

/* Plain pages (privacy, dl, error) */
.page { max-width: 44rem; margin: 0 auto; padding: 40px 20px 72px; display: flex; flex-direction: column; gap: 18px; }
.page h1 { font-size: 2rem; }
.page h2 { font-size: 1.2rem; margin-top: 14px; }
.page ul { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 6px; }
.page table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.page th { background: var(--mist); }
.table-wrap { overflow-x: auto; }
.draft { background: #fff4d6; color: #6b4e00; border-radius: 8px; padding: 12px 14px; font-size: 0.9rem; }
.todo { background: #fff4d6; padding: 0 4px; border-radius: 3px; }
.handover { text-align: center; align-items: center; }
.handover section { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.handover .btn { max-width: 22rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.stores .btn { flex: 1 1 12rem; }

@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color 0.15s ease, box-shadow 0.15s ease; } }
