/* ==========================================================================
   ScreenshotHotDog — marketing site
   Brand: playful, friendly, internet-native. Thick outlines, flat colour,
   rounded everything, chunky sticker shadows. No gradients.
   ========================================================================== */

:root {
  /* Primary */
  --butter: #f5d75a;
  --toast: #f08a3c;
  --tomato: #e95a4c;
  --blue: #5fa8f5;
  --lilac: #b99aef;

  /* Neutrals */
  --cream: #fff8eb;
  --white: #fcfcfa;
  --charcoal: #2f2f35;
  --choc: #5a4338;

  /* Accent */
  --mint: #7fd8c7;
  --pink: #f58bcb;

  /* Ink */
  --ink: var(--charcoal);
  --ink-soft: #6b6b74;

  /* Sticker outline system — the single most brand-defining tokens here. */
  --line: 3px;
  --outline: var(--line) solid var(--charcoal);
  --pop: 6px 6px 0 var(--charcoal);
  --pop-sm: 4px 4px 0 var(--charcoal);
  --pop-lg: 9px 9px 0 var(--charcoal);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 30px;
  --r-pill: 999px;

  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --wrap: 1140px;

  /* Rounded, friendly, high x-height. Swap the first entry for a self-hosted
     face (Nunito / Baloo 2 / Quicksand) when the brand font is chosen. */
  --font: ui-rounded, "Nunito", "Quicksand", "Varela Round", "Segoe UI Variable Display",
    "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --------------------------------------------------------------- base --- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }

img, svg { max-width: 100%; height: auto; }

code, kbd, pre { font-family: var(--font-mono); }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-pill);
  padding: 0.6rem 1.2rem;
  box-shadow: var(--pop-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ sticker --- */

.sticker {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
}

/* Slight asymmetry — every third card leans the other way. */
.tilt-l { transform: rotate(-1.1deg); }
.tilt-r { transform: rotate(1.1deg); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.95rem;
  border: var(--outline);
  border-radius: var(--r-pill);
  background: var(--mint);
  box-shadow: var(--pop-sm);
}

.badge .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tomato);
  border: 2px solid var(--charcoal);
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  padding: 0.8rem 1.6rem;
  border: var(--outline);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--pop);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: var(--pop-sm);
}

.btn:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--charcoal);
}

.btn--primary { background: var(--butter); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--white); box-shadow: var(--pop-sm); transform: translate(0, 0); }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; box-shadow: var(--pop-sm); }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------------------------------------------------------------- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--outline);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}

.logo img { width: auto; height: 40px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.nav__links a { text-decoration: none; }
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--tomato); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ------------------------------------------------------------ section --- */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--cream { background: var(--cream); }
.section--white { background: var(--white); border-block: var(--outline); }
.section--blue { background: var(--blue); border-block: var(--outline); }
.section--lilac { background: var(--lilac); border-block: var(--outline); }
.section--butter { background: var(--butter); border-block: var(--outline); }

.section__head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--choc);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--choc);
}

/* ---------------------------------------------------------------- hero --- */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-top: 0.8rem; }

.hero h1 .hl {
  background: var(--butter);
  border-radius: var(--r-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.15em;
}

.hero__sub {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--choc);
  max-width: 34ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--choc);
}

.hero__trust li::before {
  content: "✦";
  color: var(--tomato);
  margin-right: 0.4rem;
}

.hero__art {
  position: relative;
}

.hero__mascot {
  width: min(300px, 62%);
  display: block;
  margin: 0 auto -1.5rem;
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------- browser mock (art) --- */

.mock {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--pop-lg);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: var(--outline);
  background: var(--cream);
}

.mock__dots { display: flex; gap: 0.35rem; }

.mock__dots i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--charcoal);
  display: block;
}
.mock__dots i:nth-child(1) { background: var(--tomato); }
.mock__dots i:nth-child(2) { background: var(--butter); }
.mock__dots i:nth-child(3) { background: var(--mint); }

.mock__url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: var(--r-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__body { padding: 1.1rem; display: grid; gap: 0.7rem; }

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--charcoal);
  border-radius: var(--r);
  background: var(--cream);
}

.step__n {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--charcoal);
  background: var(--butter);
  font-weight: 900;
  font-size: 0.85rem;
}

.step__name { font-weight: 700; font-size: 0.92rem; }
.step__meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }

.step__tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border: 2px solid var(--charcoal);
  border-radius: var(--r-pill);
  background: var(--mint);
  white-space: nowrap;
}
.step__tag--new { background: var(--pink); }
.step__tag--changed { background: var(--butter); }

/* ---------------------------------------------------------------- grid --- */

.grid {
  display: grid;
  gap: var(--gap);
}

/* Grid items default to min-width:auto, so a wide child (a long URL in a
   <pre>) pushes the whole page sideways instead of scrolling inside itself. */
.grid > * { min-width: 0; }

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  padding: var(--pad);
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
}

.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--choc); font-size: 0.98rem; }

.card__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: var(--r);
  margin-bottom: 1rem;
}
.card__icon svg { width: 1.7rem; height: 1.7rem; }

.bg-butter { background: var(--butter); }
.bg-tomato { background: var(--tomato); }
.bg-blue { background: var(--blue); }
.bg-mint { background: var(--mint); }
.bg-lilac { background: var(--lilac); }
.bg-pink { background: var(--pink); }
.bg-toast { background: var(--toast); }

/* --------------------------------------------------------------- steps --- */

.how {
  counter-reset: how;
}

.how__item {
  position: relative;
  padding-top: 2.6rem;
}

.how__item::before {
  counter-increment: how;
  content: counter(how);
  position: absolute;
  top: -1.3rem;
  left: var(--pad);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  border: var(--outline);
  border-radius: 50%;
  background: var(--butter);
  box-shadow: var(--pop-sm);
}

.how__item:nth-child(2)::before { background: var(--pink); }
.how__item:nth-child(3)::before { background: var(--mint); }

/* --------------------------------------------------------------- code --- */

.codeblock {
  max-width: 100%;
  border: var(--outline);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--pop);
}

.codeblock__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  background: var(--choc);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.codeblock__head span { margin-right: auto; }

.codeblock pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: var(--cream);
  font-size: 0.86rem;
  line-height: 1.7;
}

.codeblock .t-url { color: var(--mint); }
.codeblock .t-key { color: var(--butter); }
.codeblock .t-dim { color: #a09a92; }

.copy {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.25rem 0.8rem;
  border: 2px solid var(--cream);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--cream);
  transition: background 0.12s ease, color 0.12s ease;
}
.copy:hover { background: var(--cream); color: var(--charcoal); }
.copy[data-copied="true"] { background: var(--mint); border-color: var(--mint); color: var(--charcoal); }

/* --------------------------------------------------------------- chips --- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.chips li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border: 2px solid var(--charcoal);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--pop-sm);
}

.chips li:nth-child(4n + 1) { background: var(--butter); }
.chips li:nth-child(4n + 2) { background: var(--mint); }
.chips li:nth-child(4n + 3) { background: var(--pink); }
.chips li:nth-child(4n + 4) { background: var(--white); }

/* --------------------------------------------------------------- stats --- */

.stat {
  padding: var(--pad);
  text-align: center;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
}

.stat__n {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--choc);
}

.footnote {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--choc);
  max-width: 62ch;
}

/* -------------------------------------------------------------- status --- */

.status {
  padding: var(--pad);
  border: var(--outline);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--pop);
}

.status h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.status li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  border-top: 2px dashed #e4ddd0;
}
.status li:first-child { border-top: 0; }

.status li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
}

.status--now li::before { background: var(--mint); }
.status--soon li::before { background: var(--butter); }
.status--later li::before { background: var(--white); }

/* ------------------------------------------------------------- pricing --- */

.price {
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
}

.price--feature {
  background: var(--butter);
  box-shadow: var(--pop-lg);
}

.price__name {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.price__tag {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price__tag small {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--choc);
}

.price__shape {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--choc);
  margin: 0.6rem 0 1rem;
  min-height: 2.6em;
}

.price ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  flex: 1;
}

.price li {
  padding: 0.3rem 0 0.3rem 1.6rem;
  position: relative;
}

.price li::before {
  content: "✔";
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--tomato);
}

.price .btn { width: 100%; }

.price__flag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.7rem;
  border: 2px solid var(--charcoal);
  border-radius: var(--r-pill);
  background: var(--pink);
}

/* ----------------------------------------------------------------- faq --- */

.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq details {
  border: var(--outline);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--pop-sm);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 800;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  background: var(--butter);
}

.faq details[open] summary::after { content: "–"; background: var(--mint); }

.faq details > div {
  padding: 0 1.25rem 1.25rem;
  color: var(--choc);
  font-size: 0.97rem;
}

/* -------------------------------------------------------------- callout --- */

.callout {
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border: var(--outline);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--pop-lg);
}

.callout h2 { max-width: 20ch; margin-inline: auto; }
.callout p { max-width: 52ch; margin-inline: auto; color: var(--choc); }

.callout__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.6rem;
}

/* -------------------------------------------------------------- footer --- */

.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.footer a { color: var(--cream); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--butter);
  margin-bottom: 0.8rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.footer li { padding: 0.22rem 0; }

.footer__note {
  font-size: 0.85rem;
  color: #b9b3ab;
  border-top: 2px solid #4a4a52;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer__blurb { font-size: 0.95rem; color: #d6d0c7; max-width: 38ch; }

/* -------------------------------------------------------------- motion --- */

/* Only hide content once we know JS is running to bring it back. Without the
   .js guard, a failed script would leave half the page permanently invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1.4, 0.4, 1);
}

/* Ear wiggle + a little squash on the mascot. Purely decorative. */
@keyframes frank-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

.hero__mascot { animation: frank-bob 4.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__mascot { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------- print --- */

@media print {
  .nav, .hero__art, .footer { display: none; }
  body { background: #fff; }
  .sticker, .card, .price, .stat { box-shadow: none; }
}
