/* SyncRows — site styles */
:root {
  --paper: #f7f9f8;
  --grid: #e3e9e6;
  --ink: #17212b;
  --ink-soft: #4b5864;
  --line: #cfd8d4;
  --teal: #1f6b5c;
  --teal-soft: #d9ece6;
  --marker: #f3dc5a;
  --white: #ffffff;
  --radius-s: 4px;
  --radius-m: 10px;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { flex: none; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 56px 72px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-quiet { background: var(--white); color: var(--ink); }
.btn-quiet:hover { background: var(--teal-soft); color: var(--ink); }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* Demo: sheet -> calendar */
.demo {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
  box-shadow: 6px 6px 0 var(--ink);
}
.demo-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 0 0 8px; }
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; white-space: nowrap; }
.sheet th { background: #eef2f0; font-weight: 600; }
.sheet tr.r td { transition: background-color .3s; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cal .day { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; padding-bottom: 2px; }
.cal .col { position: relative; height: 120px; background: #f3f6f5; border-radius: var(--radius-s); }
.ev {
  position: absolute; left: 3px; right: 3px;
  border-radius: 3px;
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  font-size: 11px; line-height: 1.25;
  padding: 3px 4px;
  overflow: hidden;
}
.ev b { display: block; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .sheet tr.r td { animation: rowflash 1s ease both; }
  .ev { animation: drop .5s cubic-bezier(.2,.8,.2,1) both; }
  .r1 td { animation-delay: .4s; }  .e1 { animation-delay: .7s; }
  .r2 td { animation-delay: .9s; }  .e2 { animation-delay: 1.2s; }
  .r3 td { animation-delay: 1.4s; } .e3 { animation-delay: 1.7s; }
  .r4 td { animation-delay: 1.9s; } .e4 { animation-delay: 2.2s; }
}
@keyframes rowflash { 0%, 100% { background: transparent; } 40% { background: var(--marker); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Sections */
section.block { padding-block: 56px; border-top: 2px solid var(--ink); }
section.block h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
section.block .intro { color: var(--ink-soft); max-width: 40em; margin: 0 0 32px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.steps li::before {
  content: counter(s);
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  margin-bottom: 12px;
}
.steps h3 { font-size: 18px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.access { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); font-size: 15.5px; }
.access th:first-child, .access td:first-child { width: 26%; }
.access th, .access td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.access thead th { background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; }
.access code { font-size: 13px; background: #eef2f0; padding: 2px 5px; border-radius: 3px; word-break: break-all; }
.access .yes { color: var(--teal); font-weight: 600; }
.access .no { color: #8a2e24; font-weight: 600; }
.after-table { color: var(--ink-soft); font-size: 15px; margin-top: 16px; max-width: 46em; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.plan.pro { border: 2px solid var(--ink); }
.plan h3 { font-family: var(--display); font-size: 22px; margin: 0; }
.plan .price { font-family: var(--display); font-size: 34px; font-weight: 700; margin: 8px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.plan ul { padding-left: 20px; margin: 16px 0 0; }
.plan li { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding-block: 32px 48px; font-size: 14px; color: var(--ink-soft); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.site-footer p { margin: 4px 0; }

/* Legal pages */
.legal { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-m); padding: clamp(20px, 5vw, 56px); margin-block: 24px 56px; max-width: 820px; }
.legal h1 { font-family: var(--display); font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.legal .updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-family: var(--display); font-size: 23px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { max-width: 68ch; }
.legal .callout { background: var(--teal-soft); border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: var(--radius-s); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: #eef2f0; }
.legal code { font-size: 13.5px; background: #eef2f0; padding: 2px 5px; border-radius: 3px; word-break: break-all; }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 48px; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .demo { grid-template-columns: 1fr; box-shadow: 4px 4px 0 var(--ink); }
  .site-nav { display: none; }
  .ev { font-size: 10px; padding: 2px 3px; overflow-wrap: anywhere; }
  .cal .col { height: 130px; }
  .access thead { display: none; }
  .access tr { display: block; border-bottom: 1px solid var(--line); }
  .access td { display: block; border: 0; padding: 8px 16px; }
  .access td:first-child { padding-top: 16px; }
  .access td:last-child { padding-bottom: 16px; }
}
