/* VNVN Attendance website. Colors follow the app: pine green, mint wash,
   the yellow of its pending notes, and its red for "location not confirmed".
   The one loud element is the paper time card in the hero. */
:root {
  --ink: #16302a;
  --muted: #4b625b;
  --pine: #1f5c4c;
  --pine-dark: #164737;
  --mint: #e7f4eb;
  --mist: #f4f7f2;
  --line: #d3e0d6;
  --card: #f3e6c2;
  --card-edge: #dcc68a;
  --red: #b42318;
  --focus: #00a3ad;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff; }
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: inherit; font-weight: 650; overflow-wrap: anywhere; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Buttons: the app's own shape. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--pine); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--pine-dark); color: #fff; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* Header: stays at the top while scrolling (owner 2026-11-19 07:07: a way back up; the logo goes to the top
   of the home page, and Sign up is always within reach). */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
[id] { scroll-margin-top: 84px; }
.lang-short { display: none; }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; margin-right: auto; }
.brand img { width: 52px; height: auto; }
.langs ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.langs a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.langs a:hover { background: var(--mist); color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--mint); }
@media (max-width: 599px) {
  .top-row { gap: 8px; min-height: 56px; flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; }
  .brand { gap: 6px; font-size: 0.95rem; min-width: 0; }
  .brand img { width: 40px; }
  .brand-rest { display: none; }
  .brand { overflow: hidden; }
  .langs, .top-cta { flex: none; }
  .langs ul { gap: 0; }
  .langs a { padding: 8px 7px; font-size: 0.85rem; font-weight: 650; }
  .lang-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-short { display: inline; }
  .top-cta { min-height: 38px; padding: 0 12px; font-size: 0.9rem; flex: none; }
  [id] { scroll-margin-top: 68px; }
}
@media (max-width: 359px) { .brand > span { display: none; } }

/* Hero */
.hero { background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; gap: 36px; padding-top: 44px; padding-bottom: 52px; }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.15em; color: var(--muted); max-width: 36em; }
/* The offer: 14 days free, then $1 the first year (owner 2026-11-19). */
.offer { display: inline-block; margin: 0.4em 0 0; padding: 12px 16px; background: #fff; border: 2px solid var(--pine); border-radius: 12px; max-width: 34em; }
.offer strong { display: block; color: var(--pine-dark); font-size: 1.08em; }
.signup .offer { margin-bottom: 4px; }
.offer-after { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95em; }
.offer-trial { display: block; margin-top: 2px; }
.offer-label { display: block; margin-top: 8px; font-weight: 700; color: var(--pine-dark); }
.offer-list { margin: 4px 0 0; padding: 0; list-style: none; }
.offer-list li { position: relative; margin: 4px 0; padding-left: 1.6em; font-weight: 600; color: var(--ink, inherit); }
.offer-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pine); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 1.6em 0 1em; }
.more { font-weight: 650; }
.hero-langs { color: var(--muted); font-size: 0.95rem; margin: 0; }
.hero-visual { position: relative; }
.hero-phone { display: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding-top: 64px; padding-bottom: 72px; }
  .hero-visual { min-height: 560px; }
  .hero-phone { display: block; position: absolute; right: 0; top: 0; width: 280px; }
  .hero-phone img { width: 280px; border-radius: 28px; border: 8px solid var(--ink); box-shadow: 0 24px 50px -24px rgba(22, 48, 42, 0.45); }
  .timecard { position: absolute; left: 0; bottom: 0; width: min(390px, 78%); transform: rotate(-2.5deg); }
}

/* The time card: printed paper, stamped times. */
.timecard { margin: 0; background: var(--card); border: 1px solid var(--card-edge); border-radius: 6px; padding: 18px 18px 14px; box-shadow: 0 18px 40px -22px rgba(60, 45, 10, 0.55); }
.timecard figcaption { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.tc-label { grid-column: 1 / -1; font-size: 0.8rem; color: #6b5a2c; }
.tc-name { font-weight: 800; font-size: 1.1rem; }
.tc-day { font-size: 0.95rem; align-self: end; }
.timecard table { width: 100%; border-collapse: collapse; }
.timecard tr { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 7px 0; border-bottom: 1px dashed rgba(120, 95, 30, 0.35); }
.timecard th { text-align: left; font-weight: 600; font-size: 0.95rem; }
.tc-time { font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; text-align: right; line-height: 1.1; color: var(--pine-dark); }
.tc-proof { grid-column: 1 / -1; font-size: 0.85rem; color: #5c5030; }
.tc-total { margin: 10px 0 0; font-weight: 800; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .timecard tr { animation: stamp 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; animation-delay: calc(0.35s + var(--i) * 0.28s); }
  .tc-total { animation: stamp 0.32s ease-out both; animation-delay: 1.55s; }
  @keyframes stamp { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
}

/* Sections */
.band { padding: 64px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .band { padding: 88px 0; } }
.section-lead { color: var(--muted); font-size: 1.08em; max-width: 40em; }
.ways { display: grid; gap: 28px; margin: 32px 0 28px; }
.way { display: grid; gap: 18px; align-items: start; }
.way img { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.way-phone img { width: min(260px, 70vw); border-radius: 22px; border: 6px solid var(--ink); }
.way-text p { color: var(--muted); max-width: 32em; }
@media (min-width: 900px) {
  .ways { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
  .way-phone img { width: 100%; }
}
.note { max-width: 44em; padding: 14px 18px; border-left: 4px solid var(--red); background: #fdf1ef; border-radius: 0 10px 10px 0; }

.owner { background: var(--mist); }
.split { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .split-phone { grid-template-columns: minmax(0, 1.4fr) 300px; }
}
.points { margin: 24px 0 0; padding: 0; list-style: none; }
.points li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; max-width: 38em; }
.points li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 14px; height: 8px; border-left: 3px solid var(--pine); border-bottom: 3px solid var(--pine); transform: rotate(-45deg); }
.shots { display: grid; gap: 20px; }
.shots img { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 34px -26px rgba(22, 48, 42, 0.5); }
.staff-phone { width: min(280px, 72vw); border-radius: 26px; border: 7px solid var(--ink); }
.privacy-box { margin-top: 28px; padding: 18px 20px; background: var(--mint); border-radius: 12px; max-width: 38em; }
.privacy-box p { margin: 0; }

.steps { counter-reset: step; margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; min-height: 46px; max-width: 34em; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font-weight: 800; font-size: 1.2rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } .steps li { padding: 62px 0 0; } }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--pine); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: -4px 0 20px; max-width: 40em; }
.faq details .faq-lead { margin-bottom: 6px; }
.faq details .offer-list { margin: 0 0 10px; max-width: 40em; }

/* Sign-up form */
.signup { background: var(--mint); }
.form { display: grid; gap: 18px; align-items: end; margin-top: 28px; padding: 24px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
@media (min-width: 700px) {
  .form { grid-template-columns: 1fr 1fr; padding: 32px; }
  .field[data-field="message"], .turnstile, .consent, .form .btn, .form-msg { grid-column: 1 / -1; }
  /* IDEA-034 (testers 2026-11-20): a message under one field pushed its neighbour out of line. Two fields side by side
     share three rows (title, box, message), so the boxes stay level whatever is written under either. */
  @supports (grid-template-rows: subgrid) {
    .form { align-items: start; row-gap: 0; }
    .form > * { margin-bottom: 18px; }
    .form > .consent, .form > .turnstile { margin-bottom: 18px; }
    .form > :last-child { margin-bottom: 0; }
    .form > .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
    .form > .field > label { align-self: end; }
  }
}
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9fb5aa; border-radius: 10px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: 3px solid rgba(0, 163, 173, 0.35); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 0.92rem; margin: 6px 0 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
/* Owner 2026-11-20 04:48: the check runs out of sight and takes no room until it asks the visitor to tick it. */
.form > .turnstile:not(.shown) { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; }
.consent { font-size: 0.92rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; min-width: 200px; }
.form-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fdf1ef; color: var(--red); font-weight: 650; }
/* Owner 2026-11-20: the email address is checked before Sign up works (a 6-digit code, or the link in the email). */
.email-check { grid-column: 1 / -1; display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.email-check[hidden] { display: none; }
.email-check [hidden] { display: none; }
[data-store-ready] [hidden] { display: none; }
.store-address strong { overflow-wrap: anywhere; }
.email-why { grid-column: 1 / -1; margin: -6px 0 0; font-size: 0.9rem; color: var(--muted); }
.email-why[hidden] { display: none; }
.resend { display: grid; gap: 6px; justify-items: start; }
.email-small { margin: 0; font-size: 0.88rem; color: var(--muted); }
.form .btn-ghost { min-width: 0; min-height: 44px; background: #fff; color: var(--pine); border: 2px solid var(--pine); }
.form .btn-ghost:hover { background: var(--mint); color: var(--pine-dark); }
.email-note { margin: 0; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.code-row label { display: block; font-weight: 650; margin-bottom: 6px; }
.code-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.code-line input { width: 8.5em; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 1.2rem; letter-spacing: 0.25em; font-variant-numeric: tabular-nums; color: var(--ink); background: #fff; border: 1.5px solid #9fb5aa; border-radius: 10px; }
.code-line input:focus { border-color: var(--pine); outline: 3px solid rgba(0, 163, 173, 0.35); outline-offset: 0; }
.confirm-form { margin-top: 8px; }
.email-ok { margin: 0; font-weight: 700; color: var(--pine); }
.link-button { background: none; border: 0; padding: 0 4px; color: var(--pine); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.form-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Install the app */
.install-link { margin: 28px 0 0; font-weight: 650; }
.install-step { display: grid; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.install-step:first-of-type { border-top: 0; }
.install-step h2 { margin-top: 0; }
.install-text { max-width: 40em; }
.install-list { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.install-phone { width: min(260px, 70vw); border-radius: 22px; border: 6px solid var(--ink); }
.install-wide { width: min(760px, 100%); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
@media (min-width: 900px) { .install-step.with-phone { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; } }

/* Plain pages */
.page { padding: 56px 0 80px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }

.foot { background: var(--ink); color: #dfe9e3; padding: 40px 0; font-size: 0.95rem; }
.foot a { color: #fff; }
.foot code { color: #fff; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-own { margin: 0; color: #a9bdb4; }
