/* Whiteboard site. Layout: a lined paper page, with the app's own board as the hero object. */
:root {
  --paper: #F3EEE5;
  --surface: #FFFFFF;
  --ink: #14161C;
  --muted: #5C606A;
  --line: #E3DED3;
  --blue: #2F5FE0;
  --blue-soft: #EEF3FF;
  --on-blue: #FFFFFF;
  --yellow: #F5B301;
  --grain: rgba(20, 22, 28, 0.05);
  --frame: #1C1F27;
  --shadow: rgba(40, 30, 10, 0.18);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12141A; --surface: #1A1D25; --ink: #ECEEF3; --muted: #A3A8B4; --line: #2A2E39;
    --blue: #8AA6FF; --blue-soft: #222A40; --on-blue: #0E1220; --yellow: #F5B301;
    --grain: rgba(255, 255, 255, 0.035); --frame: #05060A; --shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12141A; --surface: #1A1D25; --ink: #ECEEF3; --muted: #A3A8B4; --line: #2A2E39;
  --blue: #8AA6FF; --blue-soft: #222A40; --on-blue: #0E1220; --yellow: #F5B301;
  --grain: rgba(255, 255, 255, 0.035); --frame: #05060A; --shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--grain) 1px, transparent 1px);
  background-size: 6px 6px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 12px rgba(31, 69, 181, 0.25); }
.brand span { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; line-height: 1.1; }
.btn .two { display: flex; flex-direction: column; line-height: 1.2; }
.btn-sm { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-block: 40px 72px; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(46px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.swash { position: relative; display: inline-block; font-style: italic; color: var(--blue); }
.swash svg { position: absolute; left: 0; bottom: -0.16em; width: 100%; height: 0.32em; overflow: visible; }
.lead { margin: 26px 0 0; max-width: 34ch; font-size: 19px; color: var(--muted); }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.cta .plain { font-weight: 600; text-decoration: none; }
.facts { display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

.stage { position: relative; }
.device {
  position: relative; padding: 14px; border-radius: 34px; background: var(--frame);
  transform: rotate(-2deg);
  box-shadow: 0 2px 4px var(--shadow), 0 30px 60px var(--shadow);
}
.screen {
  position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 3 / 2; max-width: 100%;
  background-color: #FFFFFF;
  background-image: radial-gradient(#D6DAE3 1.1px, transparent 1.1px);
  background-size: 18px 18px;
}
.screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card {
  position: absolute; left: -18px; bottom: -26px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 40px var(--shadow), 0 0 0 1px var(--line);
  font-size: 14px;
}
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.float-card b { display: block; font-size: 15px; }
.float-card span { color: var(--muted); }

/* subjects */
.subjects { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.subjects li { padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.subjects-row .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 8px 24px; }
.subjects-row p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* features */
.section { padding-block: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.section-head p { margin: 0; max-width: 40ch; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 18px 0 8px; font-size: 19px; line-height: 1.3; }
.feature p { margin: 0; font-size: 15.5px; color: var(--muted); }
.feature .hand { font-family: var(--hand); font-size: 22px; color: var(--blue); line-height: 1.2; margin-top: 12px; }

/* promise */
.promise { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px; border-radius: 32px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.promise p { margin: 16px 0 0; color: var(--muted); max-width: 46ch; }
.checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checks svg { flex: none; width: 26px; height: 26px; color: var(--blue); margin-top: 1px; }

/* footer */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* legal pages */
.doc { max-width: 760px; padding-block: 32px 64px; }
.doc .eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.doc h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.doc .meta { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 44px 0 10px; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; line-height: 1.2; }
.doc h3 { margin: 22px 0 6px; font-size: 17px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.summary { margin-top: 32px; padding: 24px 26px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.summary h2 { margin-top: 0; font-size: 20px; }
.summary ul { margin: 0; }
.perm { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.perm th, .perm td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.perm th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.table-scroll { overflow-x: auto; margin-top: 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.contact { font-weight: 600; user-select: all; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 16px 64px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .nav .text-link { display: none; }
  .float-card { left: 8px; bottom: -22px; }
  .section { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
