/* goasto.com/clock/ — Asto Clock's page. Page-only rules on top of /assets/css/site.css (the keynote system: black
   stage, Geist, one teal accent, white sections for the working detail). Everything here is scoped to .ck-* classes. */

.clock-page { --ck-paper: #F4F1E8; --ck-pencil: #34403E; --ck-red: #B4483C; }

/* one measure for every section, so the left edges line up down the page */
.clock-page main .wrap { max-width: 1160px; }

/* ---------- type ---------- */
.ck-statement {
  font-size: clamp(48px, 7.4vw, 104px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
  max-width: 11ch;
}
.ck-h2 {
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.0;
  text-wrap: balance;
  max-width: 18ch;
}
.ck-h3 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.ck-lead { font-size: 22px; line-height: 1.45; color: var(--white-2); max-width: 40ch; text-wrap: pretty; }
.ck-sub { font-size: 20px; line-height: 1.5; color: var(--white-2); max-width: 46ch; margin-top: 22px; text-wrap: pretty; }
.on-white .ck-sub { color: var(--ink-2); }
.ck-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.on-white .ck-kicker { color: var(--teal-deep); }
.ck-body { font-size: 19px; line-height: 1.55; color: var(--white-2); max-width: 46ch; margin-top: 22px; text-wrap: pretty; }

/* ---------- 1. hero ---------- */
.ck-hero { position: relative; padding: 96px 0 120px; overflow: hidden; }
.ck-hero::before {             /* a low teal light behind the phone */
  content: '';
  position: absolute;
  right: -10%; top: 8%;
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(79,195,184,.16), transparent 72%);
  pointer-events: none;
}
.ck-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px;
  align-items: center;
}
.ck-wordmark { height: 34px; width: auto; margin-bottom: 30px; }
.ck-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ck-eyebrow span {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-2);
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.ck-eyebrow span:first-child { color: var(--teal); border-color: rgba(79,195,184,.4); }
.ck-hero-copy .ck-statement { margin-bottom: 28px; }
.ck-ctas { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.ck-devices { margin-top: 28px; font-size: 15px; color: var(--white-3); }

.ck-hero-art { position: relative; height: 640px; }
.ck-phone-hero { position: absolute; right: 0; top: 0; width: 290px; z-index: 2; }

/* the paper time sheet it replaces */
.ck-sheet {
  position: absolute;
  left: -12px; top: 112px;
  width: 330px;
  padding: 22px 22px 26px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, rgba(52,64,62,.14) 33px, rgba(52,64,62,.14) 34px),
    var(--ck-paper);
  color: var(--ck-pencil);
  border-radius: 2px;
  transform: rotate(-6deg);
  box-shadow: 0 40px 60px -30px rgba(0,0,0,.9);
  z-index: 1;
}
.ck-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ck-pencil); margin-bottom: 4px; }
.ck-sheet-head b { font-size: 12px; letter-spacing: 0.12em; }
.ck-sheet-head span { font-size: 12px; }
.ck-sheet i { font-style: italic; font-weight: 500; font-size: 16px; padding: 0 4px; }
.ck-sheet table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ck-sheet th { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; padding: 8px 4px; }
.ck-sheet td { height: 34px; padding: 0 4px; font-style: italic; font-weight: 500; border-left: 1px solid rgba(52,64,62,.18); }
.ck-sheet td:first-child { border-left: 0; font-style: normal; font-weight: 600; font-size: 13px; }
.ck-sheet s { color: var(--ck-red); text-decoration-thickness: 2px; }
.ck-sheet-foot { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px; align-items: end; margin-top: 12px; font-size: 12px; }
.ck-sheet-foot i { border-bottom: 1px solid var(--ck-pencil); min-height: 22px; }
.ck-ring {                     /* the coffee ring every time sheet has */
  position: absolute;
  right: 18px; bottom: 54px;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 5px solid rgba(120,82,40,.16);
  box-shadow: inset 0 0 0 2px rgba(120,82,40,.08);
  transform: rotate(18deg) scaleX(.92);
}

/* a real screen, framed lightly: no fake hardware */
.ck-phone { margin: 0; }
.ck-phone img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 0 8px #141416, 0 0 0 9px rgba(255,255,255,.10), 0 50px 80px -30px rgba(0,0,0,.95);
  background: #F2F2F7;
}

/* ---------- 2. paper against Asto Clock ---------- */
.ck-switch { padding: 140px 0; }
.ck-ledger { margin-top: 64px; border-top: 1px solid var(--hairline-ink); }
.ck-ledger-head, .ck-ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; }
.ck-ledger-head { padding: 18px 0; border-bottom: 1px solid var(--hairline-ink); }
.ck-ledger-head span { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ck-ledger-head span + span { color: var(--teal-deep); }
.ck-ledger-row { padding: 26px 0; border-bottom: 1px solid var(--hairline-ink); align-items: baseline; }
.ck-ledger-row p { font-size: 21px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.ck-ledger-row p:last-child { font-weight: 500; }
.ck-ledger-row .ck-paper { color: var(--ink-3); position: relative; padding-left: 28px; }
.ck-ledger-row .ck-paper::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 14px; height: 2px;
  background: var(--ck-red);
  border-radius: 1px;
}
.ck-inline-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 56px; }
.ck-inline-cta span { font-size: 15px; color: var(--ink-3); }

/* ---------- 3. features ---------- */
.ck-features { border-top: 1px solid var(--hairline); padding: 40px 0 0; }
.ck-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 96px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
}
.ck-feature + .ck-feature { border-top: 1px solid var(--hairline); }
.ck-flip { grid-template-columns: 300px minmax(0, 1fr); }
.ck-flip .ck-feature-copy { order: 2; }
.ck-flip .ck-phone { order: 1; }
.ck-points { list-style: none; margin: 32px 0 0; padding: 0; max-width: 48ch; }
.ck-points li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--hairline);
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
}
.ck-points li:last-child { border-bottom: 1px solid var(--hairline); }
.ck-points li::before {
  content: '';
  position: absolute;
  left: 2px; top: 23px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.ck-forms { grid-template-columns: minmax(0, 1fr); padding-bottom: 140px; }
.ck-forms .ck-feature-copy { max-width: 760px; }

/* ---------- 4. the week ---------- */
.ck-plan { padding: 140px 0; border-top: 1px solid var(--hairline); }
.ck-grid {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}
.ck-grid li { padding: 28px 0 36px; border-top: 1px solid var(--hairline); }
.ck-grid h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.ck-grid p { font-size: 17px; line-height: 1.5; color: var(--white-2); text-wrap: pretty; }

/* ---------- 5. payroll ---------- */
.ck-pay { padding: 140px 0; }
.ck-pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.ck-pay-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.ck-chips + .ck-pay-label { margin-top: 36px; }
.ck-chips { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-ink); }
.ck-chips li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline-ink);
}
.ck-chips b { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.ck-chips span { font-size: 14px; color: var(--ink-3); text-align: right; }
.ck-chips:first-of-type b { color: var(--teal-deep); }

/* ---------- 6. every phone ---------- */
.ck-devices-slide { padding: 140px 0; }
.ck-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 64px;
  align-items: start;
}
.ck-dev { border-top: 1px solid var(--hairline); padding-top: 26px; }
.ck-dev-name { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.ck-dev p:not(.ck-dev-name) { font-size: 17px; line-height: 1.55; color: var(--white-2); text-wrap: pretty; }
.ck-android { margin: 28px 0 0; max-width: 260px; }
.ck-android img {
  width: 100%;
  height: auto;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 0 7px #141416, 0 0 0 8px rgba(255,255,255,.10);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

/* ---------- 7. comparison ---------- */
.ck-compare { padding: 140px 0; border-top: 1px solid var(--hairline); }
.ck-table-wrap { margin-top: 56px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 4px; }
.ck-table-wrap:focus-visible { outline-offset: 6px; }
.ck-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.ck-table th, .ck-table td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--hairline); }
.ck-table thead th {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.28);
  white-space: nowrap;
}
.ck-table tbody th { font-weight: 600; color: var(--white); width: 19%; }
.ck-table td { color: var(--white-2); width: 15%; }
.ck-table .ck-us { background: rgba(79,195,184,.08); color: var(--white); width: 19%; }
.ck-table thead .ck-us { color: var(--teal); background: rgba(79,195,184,.14); border-radius: 10px 10px 0 0; }
.ck-table tbody tr:last-child .ck-us { border-radius: 0 0 10px 10px; }
.ck-table tbody th, .ck-table thead th:first-child { position: sticky; left: 0; background: var(--stage); z-index: 1; }
.ck-fine { margin-top: 28px; font-size: 14px; line-height: 1.55; color: var(--white-3); max-width: 90ch; }

/* ---------- 8. questions ---------- */
.ck-faq { padding: 140px 0; border-top: 1px solid var(--hairline); }
.ck-faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.ck-faq-list { border-top: 1px solid var(--hairline); }
.ck-faq details { border-bottom: 1px solid var(--hairline); }
.ck-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.ck-faq summary::-webkit-details-marker { display: none; }
.ck-faq summary::after {
  content: '';
  flex: none;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .25s var(--ease);
}
.ck-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.ck-faq summary:hover { color: var(--teal); }
.ck-faq details p { padding: 0 0 26px; font-size: 18px; line-height: 1.55; color: var(--white-2); max-width: 56ch; }

/* ---------- 9. close ---------- */
.ck-close {
  padding: 140px 24px 160px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ck-close-mark { height: 30px; width: auto; margin-bottom: 36px; }
.ck-close .ck-h2 { max-width: 14ch; }
.ck-close .ck-sub { margin: 24px auto 40px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ck-hero-grid { gap: 32px; }
  .ck-sheet { width: 290px; }
  .ck-phone-hero { width: 260px; }
  .ck-feature { gap: 64px; }
}

@media (max-width: 980px) {
  .ck-hero { padding: 64px 0 88px; }
  .ck-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .ck-statement { max-width: 12ch; }
  .ck-lead { font-size: 19px; }
  .ck-hero-art { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .ck-switch, .ck-plan, .ck-pay, .ck-devices-slide, .ck-compare, .ck-faq { padding: 96px 0; }
  .ck-feature, .ck-flip { grid-template-columns: 1fr; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
  .ck-flip .ck-feature-copy, .ck-flip .ck-phone { order: 0; }
  .ck-feature .ck-phone { width: min(300px, 72vw); margin: 0 auto; }
  .ck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .ck-pay-grid { grid-template-columns: 1fr; gap: 48px; }
  .ck-dev-grid { grid-template-columns: 1fr; gap: 40px; }
  .ck-faq .wrap { grid-template-columns: 1fr; gap: 40px; }
  .ck-close { padding: 96px 24px 120px; }
}

@media (max-width: 640px) {
  .ck-hero { padding: 44px 0 72px; }
  .ck-wordmark { height: 26px; margin-bottom: 24px; }
  .ck-eyebrow { margin-bottom: 22px; }
  .ck-ctas { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 32px; }
  .ck-ctas .btn { width: 100%; }
  .ck-ctas .link-arrow { align-self: flex-start; }
  .ck-hero-art { height: 132vw; max-height: 600px; }
  .ck-sheet { width: 60vw; left: 4px; top: 40px; padding: 16px 14px 20px; transform: rotate(-7deg); }
  .ck-sheet table { font-size: 13px; }
  .ck-sheet td { height: 30px; }
  .ck-sheet-head b { font-size: 10px; }
  .ck-ring { width: 64px; height: 64px; bottom: 40px; }
  .ck-phone-hero { width: 56vw; right: 0; }
  .ck-phone img { border-radius: 26px; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 0 6px #141416, 0 0 0 7px rgba(255,255,255,.10), 0 40px 60px -30px rgba(0,0,0,.95); }
  .ck-ledger { margin-top: 44px; }
  .ck-ledger-head { display: none; }
  .ck-ledger-head, .ck-ledger-row { grid-template-columns: 1fr; gap: 8px; }
  .ck-ledger-row { padding: 22px 0; }
  .ck-ledger-row p { font-size: 18px; }
  .ck-ledger-row p:last-child { padding-left: 28px; }
  .ck-inline-cta .btn { width: 100%; }
  .ck-body { font-size: 18px; }
  .ck-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .ck-chips b { font-size: 18px; }
  /* the table becomes one card per feature: Asto Clock first, the other four in a 2-by-2 grid under it */
  .ck-table-wrap { overflow: visible; margin-top: 40px; }
  .ck-table, .ck-table tbody { display: block; min-width: 0; }
  .ck-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ck-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; padding: 24px 0 8px; border-top: 1px solid var(--hairline); }
  .ck-table tbody tr:last-child { border-bottom: 1px solid var(--hairline); }
  .ck-table tbody th, .ck-table td { display: block; width: auto; padding: 0; border: 0; position: static; background: none; }
  .ck-table tbody th { grid-column: 1 / -1; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 14px; }
  .ck-table td { font-size: 15px; padding-bottom: 16px; }
  .ck-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--white-3); margin-bottom: 3px; }
  .ck-table td.ck-us { grid-column: 1 / -1; width: auto; background: rgba(79,195,184,.1); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 16px; }
  .ck-table td.ck-us::before { color: var(--teal); }
  .ck-table tbody tr:last-child .ck-us { border-radius: 10px; }
  .ck-faq summary { font-size: 19px; }
  .ck-faq details p { font-size: 17px; }
  .ck-close .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-faq summary::after { transition: none; }
}
