/* ==========================================================================
   CalmDogs — calmdogs.app
   One stylesheet, no framework, no build step, no JavaScript.

   Brand tokens are taken from the app's own tailwind.config.js
   (the "Fresh Teal" palette, 2026-07-31). If you ever want the older,
   deeper green from the marketing docs, change --green to #2F6B54 and
   --green-dark to #235140 — nothing else needs to move.
   ========================================================================== */

:root {
  --green:       #0F7A68;   /* forest      — links, accents */
  --green-dark:  #0B5C4E;   /* forestDark  — hover, headings on tint */
  --ink:         #2A2B28;   /* body text */
  --ink-soft:    #5C5E58;   /* secondary text */
  --bg:          #FFFFFF;   /* page */
  --bg-tint:     #F1FAF7;   /* app's appBg — quiet bands */
  --bg-mist:     #EFF6F4;   /* app's messageTint — quieter band */
  --line:        rgba(42, 43, 40, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;

  --measure: 34rem;   /* comfortable reading width */
  --wrap:    62rem;   /* outer container */
}

/* ---------- reset-ish ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--green); color: #fff;
  padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* .prose lives INSIDE .wrap, so the reading column starts at the same left
   edge as everything else instead of re-centring itself. */
.prose { max-width: var(--measure); }

.section { padding: 4.5rem 0; }

.band {
  padding: 4.5rem 0;
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}

.band-quiet { background: var(--bg-mist); }

/* ---------- header ---------- */

.site-header { padding: 1.5rem 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand-mark { border-radius: 7px; }

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

.hero { padding: 3rem 0 4.5rem; }

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.25rem);
  font-weight: 700;
  max-width: 30ch;
  margin-bottom: 1.1rem;
}

.h1-b { color: var(--green-dark); }

.lede {
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.badge-pending {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.7rem 1.15rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1rem;
}

.badge { display: inline-block; margin-bottom: 0.9rem; }
.badge img { width: 180px; height: auto; }

.fineprint {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- headings in sections ---------- */

.section h2, .band h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  font-weight: 700;
  max-width: 22ch;
}

.band .prose p, .section .prose p { max-width: var(--measure); }

/* ---------- features ---------- */

.feature {
  display: grid;
  gap: 1.75rem 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.feature:first-of-type { border-top: 0; padding-top: 1rem; }

.feature h3 {
  font-size: 1.375rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.feature-text p {
  color: var(--ink-soft);
  max-width: 36ch;
}

.feature-shot { margin: 0; }

.feature-shot img {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

@media (min-width: 46rem) {
  .feature { grid-template-columns: 1fr 300px; }
  .feature .feature-text { order: 1; }
  .feature .feature-shot { order: 2; }

  .feature--flip { grid-template-columns: 300px 1fr; }
  .feature--flip .feature-text { order: 2; }
  .feature--flip .feature-shot { order: 1; }

  .feature-shot { justify-self: center; }
}

/* ---------- FAQ ---------- */

.qa { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.qa:first-of-type { border-top: 0; }

.qa h3 {
  font-size: 1.125rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.qa p { color: var(--ink-soft); max-width: var(--measure); }

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

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-mail { margin-bottom: 0.4rem; }
.footer-legal { color: var(--ink-soft); }

/* ==========================================================================
   Added 2026-08-17 for /download, /press, /404 and the /reactive-dogs/ hub.

   PROVISIONAL. The visual design is being produced separately and arrives
   with TRASPASO_DESDE_DESIGN.md. Every class below is named for what it IS,
   not for how it looks, so the design can repaint it without the HTML
   moving. If the design ships a class that already exists here under
   another name, rename here — do not add a second one.
   ========================================================================== */

/* ---------- header with navigation ---------- */

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9375rem;
}

.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--green-dark); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--green-dark); font-weight: 600; }

/* ---------- breadcrumbs ---------- */

.crumbs {
  padding: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.crumbs li::after { content: "\203A"; margin-left: 0.45rem; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- page title (every page that is not the home) ---------- */

.page-title {
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  font-weight: 700;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

/* ---------- quotable summary block ----------
   The single most important block on a content page: it is what a language
   model lifts into an answer. It has to read as a distinct opening
   statement, not as a legal notice. */

.summary {
  max-width: var(--measure);
  margin: 0 0 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-tint);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  font-size: 1.0625rem;
}

.summary p { margin: 0; }

/* ---------- hub index ----------
   Has to stay readable at thirty entries, not just at ten. Grouped lists
   with rules between rows, no cards. */

.hub-group { margin: 0 0 2.5rem; max-width: var(--measure); }

.hub-group h2 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  max-width: none;
}

.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list li { border-top: 1px solid var(--line); }
.hub-list li:first-child { border-top: 0; }

.hub-list a,
.hub-list .idx-soon { display: block; padding: 0.7rem 0; }

.hub-list a { text-decoration: none; font-weight: 600; }
.hub-list a:hover { text-decoration: underline; }

/* Entries whose page is not published yet. Deliberately not a link: a menu
   full of 404s is worse than a list that tells the truth. Convert to <a>
   the day the page ships, and flip its row in enlaces.csv to "ok". */
.idx-soon { color: var(--ink-soft); }

.idx-soon em {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.5rem;
  opacity: 0.75;
}

/* ---------- single-screen pages (/download, /404) ---------- */

.screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(70vh, 38rem);
  padding: 2.5rem 0 3.5rem;
}

.screen h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  max-width: 18ch;
}

.link-list {
  list-style: none;
  max-width: var(--measure);
  margin: 1.75rem 0 0;
  padding: 0;
}

.link-list li { border-top: 1px solid var(--line); }

.link-list a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  font-weight: 600;
}

.link-list a:hover { text-decoration: underline; }

.link-list span {
  display: block;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- press kit ---------- */

.press-block { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.press-block:first-of-type { border-top: 0; padding-top: 0.5rem; }

/* Blocks meant to be selected with the mouse and pasted somewhere else.
   Visually separable at a glance is the whole requirement. */
.copyblock {
  max-width: var(--measure);
  padding: 1.15rem 1.3rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.facts { list-style: none; max-width: var(--measure); margin: 0; padding: 0; }
.facts li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts strong { display: inline-block; min-width: 6.5rem; }

.shots {
  list-style: none;
  display: grid;
  gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin: 0;
  padding: 0;
}

.shot img { border: 1px solid var(--line); border-radius: 12px; }
.shot h3 { font-size: 1rem; font-weight: 650; margin: 0.7rem 0 0.15rem; }
.shot p { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }

.dont { list-style: none; max-width: var(--measure); margin: 0; padding: 0; }

.dont li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.6rem;
  border-top: 1px solid var(--line);
}

.dont li:first-child { border-top: 0; }

.dont li::before {
  content: "\00D7";
  position: absolute;
  left: 0.2rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.swatch {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--green);
  vertical-align: -0.15em;
}

/* ---------- slim footer (single-screen pages) ---------- */

.site-footer--slim { padding: 2rem 0 2.5rem; }

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

@media print {
  .site-header, .skip { display: none; }
  body { font-size: 12pt; }
}
