/* okayresume.com. Colours follow the app's tokens in lib/core/theme.dart. */

@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("/fonts/Merriweather-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("/fonts/Merriweather-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("/fonts/Merriweather-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --canvas: #F7F9FC;
  --surface: #FFFFFF;
  --surface-muted: #EEF2F8;
  --border: #E3E8F0;
  --border-strong: #CDD5E1;
  --text: #1B1A18;
  --text-muted: #5D6A8B;
  --text-subtle: #8A94AD;
  --ink: #1B1A18;
  --on-ink: #FFFFFF;
  --accent: #1F45E8;
  --accent-soft: #E8EDFD;
  --success: #2B7A4B;
  --band: #121A2E;
  --band-text: #E9EDF7;
  --band-muted: #A9B4CF;
  --shadow-sm: 0 1px 2px rgba(27, 32, 48, .06), 0 2px 8px rgba(27, 32, 48, .05);
  --shadow-paper: 0 2px 4px rgba(27, 32, 48, .06), 0 18px 40px -12px rgba(31, 69, 232, .18), 0 30px 60px -20px rgba(27, 32, 48, .22);
  --radius: 16px;
  --display: "Merriweather", Georgia, "Times New Roman", serif;
  --ui: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111110;
    --surface: #1A1A18;
    --surface-muted: #222220;
    --border: #2B2A27;
    --border-strong: #3B3A36;
    --text: #EEECE8;
    --text-muted: #A7A29A;
    --text-subtle: #77736C;
    --ink: #EEECE8;
    --on-ink: #141413;
    --accent: #86A2F6;
    --accent-soft: #1D2539;
    --success: #72C392;
    --band: #0B0B0A;
    --band-text: #EEECE8;
    --band-muted: #A7A29A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-paper: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 50px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 600 13px/1 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--ui); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 20px 0 16px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #000;
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-badge:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.play-badge span { display: flex; flex-direction: column; font: 600 19px/1.05 var(--ui); letter-spacing: -.01em; }
.play-badge small { font: 500 11px/1.2 var(--ui); letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.play-badge-lg { height: 58px; }
.play-badge-lg span { font-size: 21px; }
@media (prefers-color-scheme: dark) { .play-badge { border-color: #4A4944; } }
.play-badge-light { border-color: rgba(255, 255, 255, .25); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.doc .site-header, .site-header:has(+ main .doc-grid) { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 18px/1 var(--ui); letter-spacing: -.01em; }
.brand img { border-radius: 9px; box-shadow: var(--shadow-sm); }
.header-nav { display: none; gap: 28px; margin-left: auto; }
.header-nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.header-nav a:hover { color: var(--text); }
.header-row .btn { margin-left: auto; }
@media (min-width: 760px) {
  .header-nav { display: flex; }
  .header-row .btn { margin-left: 8px; }
}

/* Hero */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font: 300 clamp(36px, 7.4vw, 64px)/1.1 var(--display);
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero .lead { max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero-art { position: relative; height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 4% 0;
  background: radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0) 0 0 / 18px 18px;
  border-radius: 28px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}
.sheet {
  position: absolute; width: 50%; top: 6%;
  border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-paper);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.sheet-left { left: 4%; transform: rotate(-7deg) translateY(28px); }
.sheet-right { right: 4%; transform: rotate(7deg) translateY(28px); }
.sheet-front { left: 25%; top: 0; z-index: 2; }
.hero-art:hover .sheet-left { transform: rotate(-9deg) translate(-10px, 24px); }
.hero-art:hover .sheet-right { transform: rotate(9deg) translate(10px, 24px); }
@media (min-width: 560px) { .hero-art { height: 470px; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 32px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero-art { height: 540px; max-width: none; }
}

.facts {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 16px; background: var(--surface); }
.facts .ico { flex: none; color: var(--accent); margin-top: 1px; }
.facts span { display: flex; flex-direction: column; font-size: 14px; color: var(--text-muted); line-height: 1.4; }
.facts strong { font-weight: 600; color: var(--text); font-size: 15px; margin-bottom: 2px; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 22px 24px; }
}

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2, .privacy-band h2, .cta h2 {
  font: 300 clamp(28px, 4.6vw, 44px)/1.15 var(--display);
  letter-spacing: -.02em;
}
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--text-muted); font-size: 18px; }

/* Templates */
.tpl-grid {
  display: grid; gap: 20px; grid-auto-flow: column; grid-auto-columns: 62%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 8px 16px 28px; margin: 0 -16px;
  scrollbar-width: thin;
}
.tpl { margin: 0; scroll-snap-align: start; }
.paper {
  aspect-ratio: 512 / 724;
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 32, 48, .08), 0 12px 28px -14px rgba(27, 32, 48, .3);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.paper img { width: 100%; height: 100%; object-fit: cover; }
.paper-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; text-align: center; text-decoration: none;
  background: var(--accent-soft); color: var(--text);
}
.paper-more .ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 28px; }
.more-count { font: 600 clamp(48px, 7vw, 72px)/1 var(--ui); letter-spacing: -.06em; }
.more-label { font: 600 clamp(18px, 3vw, 22px)/1.3 var(--ui); margin-top: 12px; }
.tpl:hover .paper { transform: translateY(-4px); box-shadow: var(--shadow-paper); }
.tpl figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; }
@media (min-width: 640px) { .tpl-grid { grid-auto-columns: 38%; scroll-padding-inline: 28px; padding: 8px 28px 28px; margin: 0 -28px; } }
@media (min-width: 900px) {
  .tpl-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; overflow: visible; padding: 0; margin: 0; }
}

/* Steps */
.steps-section { background: var(--surface); border-block: 1px solid var(--border); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 36px; counter-reset: s; }
.steps h3 { font: 600 19px/1.3 var(--ui); margin: 18px 0 8px; }
.steps p { color: var(--text-muted); }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); font: 400 18px/1 var(--display); color: var(--accent);
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .steps li { position: relative; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 22px; left: 60px; right: -32px;
    border-top: 1px dashed var(--border-strong);
  }
}

/* Features */
.feature-grid { display: grid; gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.feature h3 { font: 600 18px/1.3 var(--ui); margin: 20px 0 8px; }
.feature p { color: var(--text-muted); font-size: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Privacy band */
.privacy-band { background: var(--band); color: var(--band-text); }
.privacy-band h2 { color: var(--band-text); margin-bottom: 18px; }
.privacy-band p:not(.eyebrow) { color: var(--band-muted); font-size: 18px; max-width: 480px; margin-bottom: 24px; }
.privacy-band .eyebrow, .privacy-band .link-arrow { color: #A9BCFF; }
.privacy-grid { display: grid; gap: 40px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checks li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 17px;
}
.checks li:last-child { border-bottom: 0; }
.checks .ico { flex: none; color: #8FE3B0; margin-top: 1px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* FAQ */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 600 17px/1.4 var(--ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.6px solid var(--text-muted); border-bottom: 1.6px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 32px 24px 0; color: var(--text-muted); }

/* Closing call to action */
.cta { padding: 0 0 96px; }
.cta-box {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: var(--band); color: var(--band-text); border-radius: 28px;
  padding: 56px 24px; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0) 0 0 / 20px 20px;
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box img { border-radius: 16px; margin-bottom: 8px; }
.cta h2 { color: var(--band-text); }
.cta p { color: var(--band-muted); margin-bottom: 14px; font-size: 18px; }
@media (min-width: 900px) { .cta-box { padding: 80px 24px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--text-muted); margin: 14px 0 20px; max-width: 300px; }
.site-footer h2 { font: 600 13px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer nav a { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: 13px; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Legal and help pages */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 96px; }
.doc-side, .doc-body { min-width: 0; }
.doc-side ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px;
}
.doc-side ul::-webkit-scrollbar { display: none; }
.doc-side a {
  display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
}
.doc-side a:hover { color: var(--text); border-color: var(--border-strong); }
.doc-side a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (min-width: 900px) {
  .doc-grid { grid-template-columns: 220px minmax(0, 720px); gap: 72px; padding-top: 64px; }
  .doc-side nav { position: sticky; top: 100px; }
  .doc-side ul { flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 0; }
  .doc-side a { border: 0; background: none; border-radius: 8px; padding: 9px 12px; white-space: normal; }
  .doc-side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
}
.doc-head h1 { font: 300 clamp(34px, 6vw, 52px)/1.12 var(--display); letter-spacing: -.02em; }
.doc-head .meta { margin: 14px 0 22px; color: var(--text-subtle); font-size: 14px; }
.doc-head .lead { padding-bottom: 32px; border-bottom: 1px solid var(--border); }

.toc { margin: 32px 0 8px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.toc h2 { font: 600 13px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; color: var(--text-subtle); font-size: 15px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }

.prose section { padding-top: 8px; }
.prose h2 { font: 400 24px/1.3 var(--display); letter-spacing: -.01em; margin: 40px 0 14px; }
.prose p, .prose li { color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 10px 0 16px; padding-left: 22px; }
.prose li { padding: 3px 0; }
.prose li::marker { color: var(--accent); }
.prose a { overflow-wrap: anywhere; }

.contact-card {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  margin: 32px 0 8px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.contact-card h2 { font: 400 22px/1.3 var(--display); margin: 0 0 8px; }
.contact-card p { color: var(--text-muted); }
.contact-card .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; height: auto; padding-block: 12px; line-height: 1.3; }
@media (min-width: 720px) { .contact-card { flex-direction: row; align-items: center; justify-content: space-between; } .contact-card .btn { flex: none; } }

.not-found { padding: 120px 16px 160px; max-width: 640px; }
.not-found h1 { font: 300 clamp(36px, 6vw, 56px)/1.1 var(--display); margin-bottom: 16px; }
.not-found .lead { margin-bottom: 32px; }
