@import "./tokens.css";

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: inherit; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.035em; line-height: 1; }
.top-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; font-weight: 600; text-underline-offset: 3px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.eyebrow { margin-bottom: 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin-top: 24px; font-size: 20px; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.actions { margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius); background: var(--ink); color: var(--ground); font-weight: 700; text-decoration: none; }
.btn:hover { opacity: .9; }
.payg { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--live-soft); color: var(--live-ink); font-size: 15px; font-weight: 600; }
.payg-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.quiet { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* Illustration: the request box and what it does to a portfolio site. The artwork is the site's content, so it
   keeps its own colours in both themes; the frame and request box use the tokens. */
.illustration { position: relative; padding-top: 100px; padding-bottom: 36px; }
.move { position: absolute; top: 0; left: -28px; z-index: 1; width: min(330px, 82%); padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-menu); font-size: 13px; }
.move-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.from { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.arrow { flex: none; width: 18px; height: 2px; background: var(--ink-2); position: relative; }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border: solid var(--ink-2); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.progress { display: block; height: 4px; margin: 10px 0 8px; border-radius: 4px; background: var(--fill-muted); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--live); }
.moved { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--live); position: relative; }
.tick::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--raised); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.browser { border-radius: 14px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); box-shadow: var(--shadow-frame); }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.url { flex: 1; max-width: 220px; margin: 0 auto; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--fill-muted); color: var(--ink-2); font-size: 12px; text-align: center; }
.site { padding: 18px 20px 52px; color: #2A2622; font-family: Georgia, 'Times New Roman', serif; }
.site-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.site-name { font-size: 17px; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 14px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #77706A; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { margin: 0; }
.art { display: block; aspect-ratio: 4 / 5; border-radius: 2px; }
.tile figcaption { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: #4A453F; }
.tile figcaption b { padding: 1px 7px; border-radius: var(--radius-pill); background: #F5E6C6; color: #6E460C; font: 600 10px/1.5 var(--font-text); }
.tile.new .art { outline: 2px solid #B07A1E; outline-offset: 3px; }
.a1 { background: radial-gradient(circle at 34% 30%, #F7DB9A 0 9%, rgba(247,219,154,.35) 10% 17%, transparent 18%), linear-gradient(170deg, #22304A, #4B3B5E 60%, #7A5A6E); }
.a1b { background: radial-gradient(circle at 60% 70%, #F2C57C 0 14%, transparent 15%), linear-gradient(150deg, #2C2742, #5E4766); }
.a1c { background: linear-gradient(180deg, #3A3355 0 55%, #C99A6B 55% 60%, #2B2A3B 60%); }
.a2 { background: linear-gradient(180deg, #EBC6A3 0 46%, #D27A55 46% 54%, #7FA3B5 54% 70%, #3F5C6E 70%); }
.a3 { background: radial-gradient(circle at 66% 58%, #2E5B4B 0 26%, transparent 27%), radial-gradient(circle at 30% 30%, #9DBFA9 0 14%, transparent 15%), #E9E1CF; }
.a4 { background: conic-gradient(from 210deg at 42% 62%, #D98E5B, #F3D3A8, #8FAFC0, #D98E5B); }
.a5 { background: repeating-linear-gradient(172deg, #B9C49A 0 9px, #8E9F6E 9px 17px, #D8D2A6 17px 24px); }
.a6 { background: repeating-linear-gradient(90deg, #EFE7DA 0 7px, #DCCDB6 7px 14px), #EFE7DA; }

.ask { position: absolute; left: 7%; right: 7%; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-menu); font-size: 14px; }
.chips { display: flex; flex: none; }
.chip { width: 30px; height: 30px; border-radius: 6px; border: 2px solid var(--raised); }
.chip + .chip { margin-left: -10px; }
.ask-text { flex: 1; min-width: 0; line-height: 1.35; }
.send { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); position: relative; }
.send::after { content: ""; position: absolute; left: 12px; top: 13px; width: 8px; height: 8px; border: solid var(--ground); border-width: 2px 2px 0 0; transform: rotate(45deg); }

/* The new project arrives once the page has settled. */
@media (prefers-reduced-motion: no-preference) {
  .progress span { animation: fill 1400ms ease-out 300ms both; }
  .moved { animation: show 400ms ease-out 1700ms both; }
  .tile.new { animation: arrive 700ms cubic-bezier(.2,.7,.2,1) 2600ms both; }
  @keyframes fill { from { width: 0; } }
  @keyframes show { from { opacity: 0; } }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
}

/* Sections */
.how, .payg-section, .yours { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
h2 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.15; }
.steps, .points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li, .points li { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fill-muted); font-family: var(--font-display); font-weight: 600; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
.steps h3 { margin-top: 16px; }
.steps p, .points p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line); font-size: 15px; }
.foot a { font-weight: 600; text-underline-offset: 3px; }
.foot .quiet { margin: 0; }

a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 860px) {
  .move { left: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 64px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 18px; }
  .steps, .points { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .how, .payg-section, .yours { padding-top: 56px; padding-bottom: 56px; }
  h2 { font-size: 28px; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .hero h1 { font-size: 34px; }
  .site { padding: 14px 14px 46px; }
  .grid { gap: 8px; }
  .site-nav { gap: 10px; }
  .ask { left: 3%; right: 3%; font-size: 13px; }
  .move { left: 0; }
  .payg { border-radius: 14px; align-items: flex-start; }
  .payg-dot { margin-top: 7px; }
}
