:root {
  /* TokensTheme dark palette, verbatim from the apps */
  --canvas: #121214;        /* canvas dark (0.07,0.07,0.08) */
  --canvas-soft: #18181b;
  --card: #212126;          /* card dark (0.13,0.13,0.15) */
  --ink: #f2f0eb;           /* ink dark (0.95,0.94,0.92) */
  --sub: #a3a19c;           /* sub dark (0.64,0.63,0.61) */
  --border: #313136;
  --claude: #f97316;
  --openai: #10a37f;
}

/* TokensTheme light (cream) palette — activated by the widgets-section switch */
html.light {
  --canvas: #f4eee1;
  --canvas-soft: #ece5d5;
  --card: #ffffff;
  --ink: #23201b;
  --sub: #6b665c;
  --border: #e4ddcc;
  --claude: #ef6c0b;
  --openai: #0e9b78;
}

html { transition: background-color 0.3s ease; }
body { transition: background-color 0.3s ease, color 0.3s ease; }

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html, body { overflow-x: hidden; }

body {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

nav {
  display: flex; align-items: center; gap: 13px; padding: 20px 0;
}
nav img { width: 44px; height: 44px; border-radius: 11px;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.25); }
nav .name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.4px; }
nav .links { margin-left: auto; display: flex; gap: 22px; }
nav a { color: var(--sub); text-decoration: none; font-weight: 700; font-size: 0.93rem; }
nav a:hover { color: var(--claude); }

nav .nav-cta {
  background: transparent; border: 1px solid var(--border);
  color: var(--ink); padding: 7px 15px; border-radius: 999px;
  font-size: 0.86rem;
}
nav .nav-cta:hover { border-color: var(--claude); color: var(--ink); }

header.hero { text-align: center; padding: 58px 24px 20px; }
header.hero.split {
  text-align: left; padding: 30px 0 0; overflow: hidden;
  background:
    radial-gradient(56vw 700px at 82% 40%, rgba(249, 115, 22, 0.26), transparent 62%),
    radial-gradient(40vw 500px at 96% 90%, rgba(249, 115, 22, 0.12), transparent 60%),
    linear-gradient(180deg, var(--canvas), #191310 72%, var(--canvas));
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px;
  align-items: center;
}
.hero-copy .cta-row { justify-content: flex-start; }
.pillbtn { border-radius: 999px !important; }
.hero-visual { position: relative; align-self: end; }
.hero-visual img {
  width: 88%; max-width: 460px; display: block; margin: 40px auto 0;
  filter: drop-shadow(0 0 70px rgba(249, 115, 22, 0.30))
          drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}
.eyebrow {
  text-align: center; color: var(--claude); font-weight: 800;
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
}
.privacy-copy .eyebrow { text-align: left; }

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.9rem);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.06;
}
.hero h1 .claude { color: var(--claude); }
.hero h1 .openai { color: var(--openai); }
.hero p.tag {
  margin: 18px auto 30px; max-width: 600px;
  font-size: 1.13rem; color: var(--sub); font-weight: 550;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta {
  display: inline-block; font-weight: 800; font-size: 1rem;
  padding: 14px 28px; border-radius: 15px; text-decoration: none;
  transition: transform 0.15s ease;
}
.cta:hover { transform: scale(1.04); }
.cta.primary {
  background: linear-gradient(135deg, #fb923c, var(--claude));
  color: #fff; box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
}
.cta.secondary {
  background: var(--card); color: var(--ink); border: 2px solid var(--border);
}
.cta.secondary:hover { border-color: var(--openai); }
.cta span { display: block; font-size: 0.7rem; font-weight: 700; opacity: 0.75; }

.trust { margin-top: 16px; color: var(--sub); font-size: 0.9rem; font-weight: 600; }

.hero-shots {
  display: flex; gap: 30px; justify-content: center; align-items: center;
  margin-top: 46px; padding: 0 12px;
}
.hero-shots .phone {
  width: min(280px, 42vw);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
}
.hero-widgets {
  display: flex; flex-direction: column; gap: 16px; align-items: center;
  max-width: min(400px, 46vw);
}
.hero-widgets img { filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)); }
.hero-smalls { display: flex; gap: 16px; }
.hero-smalls img { width: calc(50% - 8px); }

.value-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--canvas-soft); padding: 26px 0;
}
.works-eyebrow {
  text-align: center; color: var(--claude); font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 800;
  margin-bottom: 20px;
}
.works-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
}
.works-item {
  display: flex; align-items: center; gap: 12px; padding: 6px 44px;
  color: var(--ink); font-weight: 700; font-size: 1.05rem;
}
.works-item + .works-item { border-left: 1px solid var(--border); }
.works-item img { width: 30px; height: 30px; }

.widgets-strip {
  display: block; width: 100%; max-width: 980px; margin: 0 auto;
  border-radius: 20px;
}

.widget-gallery {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: center;
  max-width: 1060px; margin: 0 auto;
}
.widget-gallery img {
  height: 144px; width: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

section { padding: 72px 0; }
section.alt { background: var(--canvas-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 {
  text-align: center; font-size: 1.9rem; font-weight: 700;
  letter-spacing: -0.8px; margin-bottom: 8px;
}
.sub { text-align: center; color: var(--sub); margin-bottom: 44px; font-weight: 550; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; max-width: 880px; margin: 0 auto;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.card .emoji { font-size: 1.6rem; }
.card h3 { font-weight: 800; font-size: 1.06rem; margin: 10px 0 4px; }
.card p { color: var(--sub); font-size: 0.94rem; }

.howimg {
  display: block; margin: 0 auto; max-width: 760px; width: 100%;
  border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.how-caption {
  text-align: center; color: var(--sub); font-size: 0.9rem;
  font-weight: 550; margin-top: 16px;
}

.shots-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.shots-grid img {
  border-radius: 18px; border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.shots-grid .w { width: min(430px, 90vw); }
.shots-grid.widgets { align-items: center; }
.shots-grid .widget {
  border: none; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}

.privacy-grid {
  display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 40px;
  align-items: center;
}
.final-cta { text-align: center; padding: 10px 0 66px; }
.final-cta h2 { margin-bottom: 6px; }
.final-cta .sub { margin-bottom: 24px; }
.final-cta .cta { display: inline-block; }
.privacy-visual img {
  width: 100%; max-width: 150px; display: block; margin: 0 auto;
  border-radius: 24px;
}
.privacy-copy p { color: var(--sub); font-weight: 550; margin: 14px 0 22px; max-width: 520px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; font-weight: 700;
  font-size: 0.88rem; color: var(--ink);
}

.cta-band-wrap { padding: 30px 0 72px; }
.cta-band {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px;
  align-items: center; background: var(--canvas-soft);
  border: 1px solid var(--border); border-radius: 26px; padding: 40px 44px;
  box-shadow: inset 0 0 80px rgba(249, 115, 22, 0.05);
}
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band-actions .cta { text-align: center; }

.faq-wrap { max-width: 720px; }
.faq-wrap h2 { margin-bottom: 28px; }
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 22px; margin-bottom: 12px;
}
details summary {
  cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
details summary::after { content: "+"; color: var(--claude); font-weight: 800; font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--sub); margin-top: 10px; font-size: 0.95rem; }

footer { padding: 36px 0 46px; font-size: 0.88rem; color: var(--sub); }
footer .row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
footer a { color: var(--claude); text-decoration: none; font-weight: 700; }
footer .copy { margin-left: auto; }

main.legal { background: var(--canvas-soft); border-top: 1px solid var(--border); padding: 54px 0 80px; }
.legal h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.8px; margin-bottom: 4px; }
.legal .updated { color: var(--sub); margin-bottom: 30px; font-size: 0.9rem; }
.legal h2 { text-align: left; font-size: 1.02rem; margin: 26px 0 8px; }
.legal p { max-width: 740px; color: #cfcdc7; }
.legal a { color: var(--claude); font-weight: 700; }

/* ---- Light mode overrides for hardcoded dark values ---- */
html.light header.hero.split {
  background:
    radial-gradient(56vw 700px at 82% 40%, rgba(249, 115, 22, 0.16), transparent 62%),
    radial-gradient(40vw 500px at 96% 90%, rgba(249, 115, 22, 0.08), transparent 60%),
    linear-gradient(180deg, var(--canvas), #fbeede 72%, var(--canvas));
}
html.light .legal p { color: #4a4740; }
html.light .widget-gallery img { filter: drop-shadow(0 16px 34px rgba(120, 90, 40, 0.22)); }
html.light .cta.primary { color: #fff; }

/* ---- Theme swap: show the right logo / widget set per theme ---- */
.theme-light-only { display: none; }
html.light .theme-dark-only { display: none; }
html.light .theme-light-only { display: block; }

/* ---- Light/dark switch in the widgets section ---- */
.theme-switch-row {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 30px;
}
.theme-switch-label { color: var(--sub); font-weight: 600; font-size: 0.95rem; }
.theme-switch {
  position: relative; width: 66px; height: 34px; flex: 0 0 auto;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--canvas-soft); cursor: pointer; padding: 0;
}
.theme-switch .track-ic {
  position: absolute; top: 0; height: 100%; display: flex; align-items: center;
  font-size: 13px; line-height: 1; opacity: 0.8;
}
.theme-switch .track-ic.moon { left: 9px; }
.theme-switch .track-ic.sun  { right: 9px; }
.theme-switch .knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--claude);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
html.light .theme-switch .knob { transform: translateX(32px); }

@media (max-width: 760px) {
  nav { flex-wrap: wrap; }
  nav .links {
    gap: 8px 16px; margin-left: 0; margin-top: 8px; width: 100%;
    align-items: center; justify-content: center; flex-wrap: wrap;
  }
  nav .links a { font-size: 0.82rem; }
  nav .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-copy .cta-row { justify-content: center; }
  .privacy-grid { grid-template-columns: 1fr; gap: 26px; }
  .privacy-copy h2 { text-align: center !important; }
  .privacy-copy .eyebrow { text-align: center; }
  .privacy-copy p { margin-left: auto; margin-right: auto; text-align: center; }
  .pills { justify-content: center; }
  .cta-band { grid-template-columns: 1fr; padding: 30px 24px; }
  .cta-band h2, .cta-band .sub { text-align: center !important; }

  /* Two small widgets share one row; mediums stay full width */
  .widget-gallery { gap: 12px; }
  .widget-gallery img { height: auto; }
  .widget-gallery img:nth-child(4n+1),
  .widget-gallery img:nth-child(4n)   { width: calc(50% - 6px); }
  .widget-gallery img:nth-child(4n+2),
  .widget-gallery img:nth-child(4n+3) { width: 100%; }
  .widget-gallery img:nth-child(4n+1) { order: 1; }
  .widget-gallery img:nth-child(4n)   { order: 2; }
  .widget-gallery img:nth-child(4n+2) { order: 3; }
  .widget-gallery img:nth-child(4n+3) { order: 4; }

  /* Works-with: keep Claude Code + Codex on one line */
  .works-item { padding: 4px 14px; gap: 9px; font-size: 0.92rem; }
  .works-item img { width: 26px; height: 26px; }
}
