/* getdrawsome.com: one stylesheet, phone first. Tokens and type from design/README.md (Website). */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --border: #DDE1EC;
  --ink: #19203A;
  --muted: #5A6178;
  --primary: #C2410C;
  --accent: #2D5BD7;
  --accent-hover: #1F3F9A;
  --accent-soft: #EEF2FD;
  --warn-soft: #FFF6DB;
  --warn-text: #7A5000;
  --success: #1E8A4C;
  --camera: #11131A;
  --title: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; font-weight: 800; z-index: 1; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.head { background: var(--surface); border-bottom: 1px solid var(--border); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--title); font-weight: 600; font-size: 22px; color: var(--ink); text-decoration: none; min-height: 44px; }
.logo:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.nav { display: flex; gap: 4px; }
.nav a { font-weight: 800; font-size: 15px; text-decoration: none; padding: 12px 10px; min-height: 44px; }

/* Shared type */
.eyebrow, .label { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; }
.h1 { font-family: var(--title); font-weight: 600; font-size: 34px; line-height: 1.12; }
.h2 { font-family: var(--title); font-weight: 600; font-size: 24px; line-height: 1.25; }
.lead { font-size: 17px; line-height: 1.5; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; display: flex; flex-direction: column; }
.list { list-style: none; margin: 0; padding: 4px 0; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; font-size: 16px; line-height: 1.45; font-weight: 600; }
.row svg { flex-shrink: 0; margin-top: 1px; }
.more { font-weight: 800; font-size: 15px; align-self: flex-start; padding: 10px 0; min-height: 44px; }
.page { padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }

/* Home: hero and video */
.hero { display: flex; flex-direction: column; padding: 28px 0 8px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: 12px 18px; font-weight: 800; font-size: 15px; }
.video { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 8px; }
.phone { width: fit-content; border-radius: 38px; background: var(--ink); padding: 9px; box-shadow: 0 12px 28px rgba(25, 32, 58, 0.20); }
.phone video { width: 218px; height: 388px; border-radius: 30px; background: var(--camera); object-fit: cover; }
.caption { font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; max-width: 300px; }

.section { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.num { width: 30px; height: 30px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); font-family: var(--title); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stack { display: flex; flex-direction: column; gap: 3px; }
.strong { font-size: 16px; font-weight: 800; }
.small { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* Support */
.contact { padding: 18px 16px; gap: 12px; }
.contact p { font-size: 16px; line-height: 1.5; }
.mail { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 26px; background: var(--primary); color: #FFFFFF; text-decoration: none; font-family: var(--title); font-weight: 600; font-size: 18px; padding: 0 16px; overflow-wrap: anywhere; }
.mail:hover { color: #FFFFFF; background: #A8380A; }
.contact .note, .note { font-size: 14px; color: var(--muted); line-height: 1.45; }
.faq { padding-top: 0; }
.faq .h2 { margin-top: 14px; }
.q { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.q:last-child { border-bottom: 0; }
.q h3 { font-size: 16px; font-weight: 800; line-height: 1.35; }
.q p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Legal texts (pandoc) */
.draft { margin-top: 20px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-text); font-size: 15px; font-weight: 700; line-height: 1.45; border: 1px solid #F2DFA6; }
.legal { padding-top: 24px; font-size: 16px; line-height: 1.6; max-width: 720px; overflow-wrap: break-word; }
.legal h1 { font-family: var(--title); font-weight: 600; font-size: 32px; line-height: 1.15; margin: 0 0 6px; }
.legal h2 { font-family: var(--title); font-weight: 600; font-size: 22px; line-height: 1.25; margin: 26px 0 8px; }
.legal h3 { font-size: 17px; font-weight: 800; margin: 18px 0 6px; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal blockquote { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-text); font-weight: 700; }
.legal blockquote p { margin: 0; }
.legal table { border-collapse: collapse; display: block; overflow-x: auto; margin: 0 0 14px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }

/* Footer */
.foot { margin-top: 36px; background: var(--surface); border-top: 1px solid var(--border); }
.foot .wrap { padding-top: 22px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { font-weight: 800; font-size: 15px; text-decoration: none; padding: 10px 0; }
.foot p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot-text { display: flex; flex-direction: column; gap: 12px; }

/* Desktop (WebHomeDesktop board, 1080 column at 1280) */
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .head .wrap { padding-top: 16px; padding-bottom: 16px; }
  .logo { gap: 10px; font-size: 26px; }
  .mark { width: 34px; height: 34px; border-radius: 10px; }
  .nav a { font-size: 16px; padding: 12px; }
  .hero { flex-direction: row; align-items: center; gap: 80px; padding: 64px 0 24px; }
  .hero-text { flex: 1; gap: 20px; }
  .eyebrow { font-size: 14px; letter-spacing: 0.5px; }
  .hero .h1 { font-size: 56px; line-height: 1.08; }
  .hero .lead { font-size: 20px; line-height: 1.55; max-width: 560px; }
  .badge { border-radius: 26px; padding: 14px 22px; font-size: 16px; }
  .video { width: 320px; flex-shrink: 0; gap: 12px; padding: 0; }
  .phone { width: fit-content; border-radius: 46px; padding: 11px; box-shadow: 0 16px 36px rgba(25, 32, 58, 0.22); }
  .phone video { width: 278px; height: 494px; border-radius: 36px; }
  .caption { font-size: 15px; max-width: none; }
  .section { gap: 18px; padding-top: 56px; }
  .home .h2 { font-size: 32px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: none; border: 0; }
  .step { flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
  .step:last-child { border-bottom: 1px solid var(--border); }
  .num { width: 36px; height: 36px; border-radius: 18px; font-size: 18px; }
  .step .strong { font-size: 19px; }
  .step .small { font-size: 16px; line-height: 1.5; }
  .cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
  .home .card { border-radius: 22px; }
  .home .list { padding: 6px 0; }
  .home .row { padding: 13px 20px; font-size: 17px; }
  .more { font-size: 16px; }
  .foot { margin-top: 64px; }
  .foot .wrap { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 32px; }
  .foot-links { gap: 22px; }
  .foot-links a { font-size: 16px; }
  .foot p { font-size: 15px; }
  .foot-text { gap: 6px; }
  .narrow { max-width: 720px; }
}
