/* Scrappy site. Tokens lifted from Palette.swift so the web and the app agree.
   Marigold is the field, rust is always "go forward", cream is rest. */

:root {
  --cream:      #F1F0EE;
  --paper:      #FFFFFF;
  --ink:        #17161A;
  --ink-soft:   #5E5A55;
  --ink-muted:  #8E8880;
  --marigold:   #FBBD22;
  --rust:       #C4380E;
  --sand:       #E6C079;
  --taupe-soft: #E6E1D8;
  --green:      #3E8F5B;
  --rule:       rgba(23, 22, 26, .09);
  --ghost:      rgba(23, 22, 26, .05);

  --serif: ui-serif, "New York", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --measure: 34rem;
  --gap: clamp(3.5rem, 9vw, 6.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Type ---------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 5.2vw, 2.3rem); }
h3 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; line-height: 1.3; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--rust); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--ink); }

.lede { font-size: 1.1875rem; color: var(--ink-soft); }
.fine { font-size: .875rem; color: var(--ink-muted); line-height: 1.55; }

strong { font-weight: 650; }

/* Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 var(--gap);
  text-align: center;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  margin-bottom: 2.75rem;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .01em;
}
.mark img { width: 30px; height: 30px; border-radius: 7px; display: block; }

.dog { width: clamp(150px, 40vw, 200px); height: auto; display: block; margin: 0 auto 1.75rem; }

.hero h1 { margin-bottom: 1rem; }
.hero .lede { margin: 0 auto; max-width: 27rem; }

.cta { margin-top: 2.25rem; }

.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: .875rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #A82F0B; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.cta .fine { margin-top: .875rem; }

/* Sections ------------------------------------------------------------ */

section { padding-bottom: var(--gap); }

.section-head { margin-bottom: 1.75rem; }
.section-head h2 { margin-bottom: .625rem; }

.eyebrow {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .875rem;
}

/* Tricks -------------------------------------------------------------- */

.tricks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border-radius: 16px; overflow: hidden; }
.tricks li { background: var(--paper); padding: 1.25rem 1.375rem; }
.tricks h3 { margin-bottom: .125rem; }
.tricks p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }

/* Screenshots --------------------------------------------------------- */

.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1.5rem 1.25rem;
  margin: 0 auto;
  max-width: 64rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  width: 232px;
  flex: 0 0 auto;
  height: auto;
  border-radius: 18px;
  scroll-snap-align: center;
  border: 1px solid var(--rule);
  background: var(--taupe-soft);
}

/* Treat / quote panel -------------------------------------------------- */

.panel {
  background: var(--marigold);
  border-radius: 20px;
  padding: 1.75rem 1.625rem;
}
.panel h2 { margin-bottom: .75rem; }
.panel p { color: rgba(23, 22, 26, .78); }

.panel.quiet { background: var(--paper); border: 1px solid var(--rule); }

/* Pricing -------------------------------------------------------------- */

.plans { display: grid; gap: 1rem; }

.plan {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.625rem;
}
.plan.pro { border-color: rgba(23, 22, 26, .16); }

.plan h3 { font-size: 1.25rem; font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.plan .price { font-size: .9375rem; color: var(--ink-muted); margin: .25rem 0 1rem; }
.plan ul { list-style: none; margin: 0; padding: 0; font-size: .9375rem; color: var(--ink-soft); }
.plan li { padding-left: 1.375rem; position: relative; margin-bottom: .375rem; }
.plan li:last-child { margin-bottom: 0; }
.plan li::before {
  content: "";
  position: absolute;
  left: .25rem; top: .6875rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sand);
}
.plan.pro li::before { background: var(--rust); }

/* Footer --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2.25rem 0 3rem;
  font-size: .875rem;
  color: var(--ink-muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--rust); text-decoration: underline; }
footer p { margin: 0; }

/* Legal pages ---------------------------------------------------------- */

.legal { padding: 3rem 0 var(--gap); }
.legal .back { display: inline-block; font-size: .875rem; text-decoration: none; margin-bottom: 2.5rem; color: var(--ink-muted); }
.legal .back:hover { color: var(--rust); }
.legal h1 { font-size: clamp(2rem, 6.5vw, 2.75rem); margin-bottom: .625rem; }
.legal .updated { font-size: .875rem; color: var(--ink-muted); margin-bottom: 2.75rem; }
.legal h2 { font-size: 1.3125rem; margin: 2.75rem 0 .75rem; }
.legal h3 { margin: 1.75rem 0 .375rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.125rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--ink-faint, #B0AAA1); }

.summary {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--marigold);
  border-radius: 12px;
  padding: 1.25rem 1.375rem;
  margin-bottom: 2.5rem;
}
.summary p { margin: 0; color: var(--ink); }

/* Motion ---------------------------------------------------------------- */

/* The tail sits behind the skull in the rig, so there is nothing to wag.
   The whole dog breathes instead. */
@media (prefers-reduced-motion: no-preference) {
  .dog { animation: bob 5.5s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}

@media (min-width: 600px) {
  .tricks { grid-template-columns: 1fr 1fr; }
  .tricks li:first-child { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr 1fr; align-items: start; }
}
