/* Great Work app landing pages. Brand tokens: ~/great-work/brand/tokens/tokens.json.
   Per-app accent comes from --accent / --accent-deep / --accent-soft set inline on <html>. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1E2433; --ink-soft: #3E4C63; --paper: #FBF7EF; --cream: #F3E9D6; --mist: #E7EBF0;
  --butter: #EAC797; --walnut: #7A4E26;
  --bg: var(--paper); --fg: var(--ink); --muted: #5B6578; --card: #FFFFFF; --line: rgba(30, 36, 51, 0.10);
  --phone: #1A1C22;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12151D; --fg: #EEF0F4; --muted: #A3ABBA; --card: #1B1F2A; --line: rgba(255, 255, 255, 0.09); --phone: #2A2D35; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Inter Display", "Inter", -apple-system, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 16px; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 500; }
header.site .brand img { width: 32px; height: 32px; border-radius: 22.5%; }
header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--fg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22.5%; box-shadow: 0 8px 24px rgba(30, 36, 51, 0.18); margin-bottom: 24px; }
.hero .store-name { font-weight: 500; color: var(--accent-deep); margin: 0 0 12px; }
@media (prefers-color-scheme: dark) { .hero .store-name { color: var(--accent); } }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); }
.hero p.intro { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero .hero-shot { justify-self: center; }

/* App Store badge (drawn in CSS so it needs no external asset) */
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff !important; text-decoration: none; padding: 10px 20px 10px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); }
.badge svg { width: 26px; height: 26px; fill: #fff; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: 11px; }
.badge strong { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.badge.soon { opacity: 0.9; }

/* Phone frames */
.phone { position: relative; width: 280px; aspect-ratio: 1320 / 2868; background: var(--phone); border-radius: 46px; padding: 11px; box-shadow: 0 24px 60px rgba(30, 36, 51, 0.22), inset 0 0 0 2px rgba(255,255,255,0.06); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone::before { content: ""; position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; background: #000; border-radius: 999px; z-index: 1; }

/* Sections */
section { padding: 56px 0; }
section > h2 { font-size: clamp(28px, 3.6vw, 38px); }
section > p.lead { color: var(--muted); max-width: 38em; margin-top: 0; }
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.prop { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.prop .glyph { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .prop .glyph { color: var(--accent); } }
.prop .glyph svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prop h3 { font-size: 19px; margin-bottom: 6px; }
.prop p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery { display: flex; gap: 28px; overflow-x: auto; padding: 12px 4px 28px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.gallery .phone { width: 240px; border-radius: 40px; padding: 10px; }
.gallery .phone img { border-radius: 31px; }
.gallery .phone::before { top: 18px; height: 19px; }

.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; margin-top: 28px; }
.details div { padding: 18px 0; border-top: 1px solid var(--line); }
.details h3 { font-size: 18px; margin-bottom: 4px; }
.details p { margin: 0; color: var(--muted); font-size: 16px; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { font-size: 18px; margin-bottom: 8px; }
.plan .price { font-family: "Inter Display", "Inter", sans-serif; font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.plan .price small { font-family: "Inter", sans-serif; font-weight: 400; font-size: 16px; color: var(--muted); letter-spacing: 0; }
.plan p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 20px; max-width: 46em; }

.cta { text-align: center; background: var(--accent-soft); border-radius: 28px; padding: 56px 24px; margin: 24px 0 56px; }
.cta img { width: 72px; height: 72px; border-radius: 22.5%; margin: 0 auto 18px; }
.cta p { color: var(--muted); margin: 0 auto 24px; max-width: 30em; }

/* Documents (privacy, terms, support, content pages) */
.doc { max-width: 720px; padding: 24px 0 64px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 1.8em; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc li { margin: 6px 0; }
.faq { margin-top: 12px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--muted); }
footer.site a { color: var(--muted); }
footer.site .maker { display: flex; align-items: center; gap: 8px; margin-right: auto; }
footer.site .maker svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .props, .pricing { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  header.site nav { gap: 14px; }
}
@media (max-width: 420px) { .phone { width: 240px; } header.site .brand span { display: none; } }
.doc, .prop, .details { overflow-wrap: break-word; }
@media (max-width: 480px) { header.site nav a:first-child { display: none; } .wrap { padding: 0 18px; } }
