/* withputty.com — Putty's own design tokens (src/design/tokens.css),
   restated for the web: warm black and white, one acid-yellow highlight,
   pastel accents with deep inks, Outfit + Newsreader. */
@font-face { font-family: "Outfit"; src: url("assets/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --c-black: #0A0A04;
  --c-yellow: #EAFF00;
  --c-pink: #FBC6F2;
  --c-purple: #B88EFE;
  --c-blue: #24D1FE;
  --c-amber: #EFB43D;
  --c-green: #1BB36A;
  --purple-deep: #6B3FD6;

  --bg: #FFFFFF;
  --bg-surface: #F2F2F2;
  --bg-sunk: #F7F7F7;
  --bg-inverse: var(--c-black);
  --fg: var(--c-black);
  --fg-2: #5C5C5C;
  --fg-3: #686868;
  --fg-inverse: #FAFAFA;
  --line: #EDEDED;
  --link: var(--purple-deep);
  --tint-purple: #F1E9FF;
  --tint-pink: #FDEAF9;
  --tint-blue: #E3F8FF;
  --tint-amber: #FDF3DE;
  --tint-green: #E2F5EB;
  --shot-shadow: 0 1px 2px rgba(10, 10, 4, 0.06), 0 24px 60px -20px rgba(10, 10, 4, 0.28);
  --nav-line: #D5D5D2;

  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A04;
    --bg-surface: #1A1A15;
    --bg-sunk: #121210;
    --bg-inverse: #FAFAFA;
    --fg: #F5F5F2;
    --fg-2: #B3B3AD;
    --fg-3: #9A9A94;
    --fg-inverse: #0A0A04;
    --line: #26261F;
    --link: var(--c-purple);
    --tint-purple: #2A2140;
    --tint-pink: #3A2236;
    --tint-blue: #10323C;
    --tint-amber: #3A2C10;
    --tint-green: #12301F;
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    --nav-line: #33332B;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* --- Nav ---------------------------------------------------------------- */
/* Invisible at rest, a floating pill once the page scrolls: the bar never
   moves or resizes — only its surface, hairline and shadow fade in
   (nav.js toggles .is-scrolled). */
.nav { position: fixed; top: 8px; left: 0; right: 0; z-index: 10; pointer-events: none; }
.nav .wrap {
  display: flex; align-items: center; gap: 24px; height: 56px;
  padding: 0 8px 0 18px; border-radius: 999px;
  border: 0.5px solid transparent; background: transparent;
  pointer-events: auto;
  transition: background-color 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out;
}
.nav.is-scrolled .wrap {
  background: var(--bg);
  border-color: var(--nav-line);
  box-shadow: 0 1px 2px rgba(10, 10, 4, 0.04), 0 6px 20px rgba(10, 10, 4, 0.06);
}
@media (prefers-reduced-motion: reduce) { .nav .wrap { transition: none; } }
/* The fixed bar overlays the top of the page: leave its room. */
main { padding-top: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: auto; }
/* The "putty" lettering from the logo, tinted with the text color (so it
   turns light in dark mode). */
.wordmark {
  display: block; width: 66px; height: 27px; margin-top: 2px;
  background: currentColor;
  -webkit-mask: url("assets/brand/wordmark.svg") center / contain no-repeat;
  mask: url("assets/brand/wordmark.svg") center / contain no-repeat;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--fg-inverse); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg-inverse); color: var(--fg-inverse);
  font: 500 17px/1 var(--font-sans); text-decoration: none;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1), opacity 160ms;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-hi { background: var(--c-yellow); color: var(--c-black); }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero-logo { width: 180px; height: auto; margin: 0 auto 24px; filter: drop-shadow(0 14px 22px rgba(107, 63, 214, 0.22)); animation: rise 900ms cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; background: var(--tint-purple); color: var(--link); font-size: 14px; font-weight: 500; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; max-width: 15ch; margin-inline: auto; }
h1 em, h2 em { font-style: italic; color: var(--link); }
.lede { max-width: 38em; margin: 24px auto 0; color: var(--fg-2); font-size: clamp(18px, 2vw, 21px); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.cta-meta { color: var(--fg-3); font-size: 14px; }
.cta-meta a { color: var(--fg-2); }
.shot {
  margin: 56px auto 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shot-shadow); outline: 1px solid var(--line); outline-offset: -1px;
  background: var(--bg-surface);
}
.hero .shot { max-width: 1080px; animation: rise 1100ms 120ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero .shot { animation: none; } html { scroll-behavior: auto; } }

/* --- Sections ----------------------------------------------------------- */
section { padding: 96px 0 0; }
.kicker { display: block; margin-bottom: 14px; color: var(--fg-3); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; max-width: 18ch; }
.section-lede { max-width: 36em; margin: 18px 0 0; color: var(--fg-2); font-size: 19px; }

/* Describe it → Putty builds it */
.prompts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.prompt { padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--c-black); }
.prompt:nth-child(5n+1) { background: var(--c-pink); }
.prompt:nth-child(5n+2) { background: var(--c-purple); }
.prompt:nth-child(5n+3) { background: var(--c-blue); }
.prompt:nth-child(5n+4) { background: var(--c-amber); }
.prompt:nth-child(5n+5) { background: var(--c-yellow); }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split .shot { margin: 0; }

/* The three built-in apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.app-card { border-radius: var(--r-xl); padding: 28px 28px 0; overflow: hidden; display: flex; flex-direction: column; }
.app-card h3 { font-size: 30px; }
.app-card p { margin: 8px 0 24px; color: var(--fg-2); font-size: 16px; }
.app-card .shot { margin: auto -2px 0; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: none; }
.app-card.mail { background: var(--tint-pink); }
.app-card.cal { background: var(--tint-blue); }
.app-card.tasks { background: var(--tint-green); }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; margin-top: 48px; }
.feature { padding-top: 22px; border-top: 1px solid var(--line); }
.feature h3 { font-family: var(--font-sans); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 8px 0 0; color: var(--fg-2); font-size: 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }

/* Closing call to action */
.closing { margin: 120px 0 0; padding: 72px 32px; border-radius: var(--r-xl); text-align: center; background: var(--bg-inverse); color: var(--fg-inverse); }
.closing h2 { margin-inline: auto; }
.closing h2 em { color: var(--c-purple); }
.closing p { color: color-mix(in srgb, var(--fg-inverse) 70%, transparent); max-width: 32em; margin: 18px auto 0; font-size: 18px; }
.closing .btn { background: var(--c-yellow); color: var(--c-black); margin-top: 32px; }
.closing .cta-meta { color: color-mix(in srgb, var(--fg-inverse) 60%, transparent); margin-top: 14px; }
.closing .cta-meta a { color: inherit; }

/* Open-anyway help */
.install { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.install li { list-style: none; padding: 22px; border-radius: var(--r-lg); background: var(--bg-surface); counter-increment: step; color: var(--fg-2); font-size: 16px; }
.install li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--bg-inverse); color: var(--fg-inverse); font-weight: 600; font-size: 15px; }
.install b { color: var(--fg); font-weight: 600; }

/* --- Footer ------------------------------------------------------------- */
footer { margin-top: 96px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { color: var(--fg-2); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .spacer { flex: 1; }

/* --- Legal pages -------------------------------------------------------- */
.doc { max-width: 720px; padding: 128px 0 0; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); text-align: left; margin: 0; max-width: none; }
.doc .updated { color: var(--fg-3); margin: 12px 0 40px; font-size: 15px; }
.doc h2 { font-size: 28px; max-width: none; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--fg-2); font-size: 17px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc .callout { padding: 20px 22px; border-radius: var(--r-lg); background: var(--tint-purple); color: var(--fg); }

/* --- Narrow screens ----------------------------------------------------- */
@media (max-width: 860px) {
  .split, .apps, .features, .install { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  section { padding-top: 72px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
}
