/* ==========================================================================
   Tail Twin — shared design system
   "Teal-adapted Playful": warm cream canvas, Inter heavy-italic display,
   soft 44px cards, deep diffused shadow, pill CTAs, single teal accent.
   ========================================================================== */

:root {
  /* Surfaces & neutrals */
  --oat: #f6f2ee;        /* page canvas */
  --paper: #ffffff;      /* elevated cards */
  --ink: #111111;        /* headings, button text */
  --slate: #2b2f36;      /* body copy */
  --charcoal: #414040;   /* quiet UI text */
  --stone: #848383;      /* icons, captions */
  --warm-mist: #e8e5e0;  /* hairlines / borders */
  --sand: #e2dcd6;       /* secondary borders */

  /* Accent — the app's teal, the only chromatic voice */
  --teal: #00bfae;       /* fills, logo mark, accent strokes */
  --teal-dark: #00998f;  /* hover, bold link contexts */
  --teal-ink: #00665f;   /* AA-safe text links on cream */
  --aqua: #beedea;       /* soft accent for the gradient band */
  --well: #e8faf7;       /* faint teal tint surface */

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius-card: 44px;
  --radius-md: 28px;
  --radius-img: 16px;
  --radius-pill: 999px;

  /* One shadow stack — cards & tiles only (warm-tinted, deep lift) */
  --shadow-card: 0 30px 70px rgba(20, 18, 16, 0.18), 0 2px 8px rgba(20, 18, 16, 0.06);
  --shadow-soft: 0 14px 30px rgba(20, 18, 16, 0.12);

  /* Layout */
  --maxw: 1140px;
  --section: clamp(72px, 11vw, 116px);
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-feature-settings: "ss01" 1, "cv11" 1;
  letter-spacing: -0.011em;
  color: var(--slate);
  background: var(--oat);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-underline-offset: 3px; }

/* --- Typography -------------------------------------------------------- */
.display {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.6rem, 7.4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.display em { color: var(--teal); font-style: italic; }

.section-title {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  line-height: 1.55;
  color: var(--charcoal);
}

/* --- Layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section); }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }

/* --- Buttons & badges -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem;
  border: 0; border-radius: var(--radius-pill);
  padding: 15px 26px; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--teal); color: var(--ink); }
.btn-primary:hover { background: #19cabb; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--oat); }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.9rem; color: var(--charcoal);
  background: var(--paper); border: 1px solid var(--warm-mist);
  border-radius: var(--radius-pill); padding: 9px 18px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--oat) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--warm-mist); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--teal); display: grid; place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark svg g { fill: var(--paper); } /* white paw on teal mark */
.brand-name {
  font-weight: 700; font-style: italic; font-size: 1.18rem;
  letter-spacing: -0.02em; color: var(--ink);
}

/* --- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 7vw, 76px); padding-bottom: var(--section); }
.hero .lede { max-width: 560px; margin-inline: auto; margin-top: 22px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 14px; font-size: 0.88rem; color: var(--stone); }

/* --- Phone mockup ------------------------------------------------------ */
.phone-stage { margin-top: clamp(44px, 7vw, 72px); display: grid; place-items: center; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.2;
  background: var(--ink); border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-card);
  transform: rotate(-3deg);
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: var(--ink); border-radius: 999px; z-index: 3;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 36px; background: var(--well);
}
.phone-screen .scene { width: 100%; height: 100%; object-fit: cover; }
.phone-dog {
  position: absolute; left: 50%; bottom: 16%;
  width: 56%; transform: translateX(-50%);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
  animation: float 4.5s ease-in-out infinite;
}
/* in-app chrome suggested in CSS */
.scene-pill {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: -0.01em;
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.scene-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.scene-dock {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  display: flex; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, 0.92); border-radius: 22px;
  padding: 11px 12px; box-shadow: var(--shadow-soft);
}
.scene-dock span {
  flex: 1; text-align: center; font-size: 0.62rem; font-weight: 700;
  color: var(--charcoal);
}
.scene-dock span::before {
  content: ""; display: block; width: 24px; height: 24px; margin: 0 auto 4px;
  border-radius: 50%; background: var(--well);
  border: 2px solid var(--teal);
}

/* --- App-tile row (hand of cards) ------------------------------------- */
.tiles {
  display: flex; justify-content: center; align-items: flex-end;
  flex-wrap: wrap; gap: 18px;
}
.tile {
  width: 200px; background: var(--paper); border-radius: var(--radius-card);
  padding: 14px; box-shadow: var(--shadow-card);
}
.tile img { width: 100%; border-radius: var(--radius-img); aspect-ratio: 4 / 3; object-fit: cover; }
.tile span {
  display: block; text-align: center; font-weight: 600; font-size: 0.9rem;
  color: var(--ink); padding: 12px 4px 4px;
}
@media (min-width: 760px) {
  .tiles { gap: 0; }
  .tile { margin-inline: -14px; transition: transform 0.25s ease; }
  .tile:nth-child(1) { transform: rotate(-7deg); }
  .tile:nth-child(2) { transform: rotate(-2.5deg) translateY(-10px); z-index: 2; }
  .tile:nth-child(3) { transform: rotate(2.5deg) translateY(-10px); z-index: 2; }
  .tile:nth-child(4) { transform: rotate(7deg); }
  .tiles:hover .tile { transform: rotate(0) translateY(0); margin-inline: 8px; }
}

/* --- Feature cards ----------------------------------------------------- */
.features {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  margin-top: 44px;
}
.feature-card {
  background: var(--paper); border-radius: var(--radius-card);
  padding: 30px 28px; box-shadow: var(--shadow-card);
}
.feature-ic {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--well);
}
.feature-ic svg { width: 24px; height: 24px; stroke: var(--teal-dark); }
.feature-card h3 {
  font-size: 1.18rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.feature-card p { color: var(--charcoal); font-size: 0.98rem; }

/* --- Gradient highlight band ------------------------------------------ */
.band {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(0, 191, 174, 0.30) 0%, rgba(190, 237, 234, 0.55) 38%, var(--oat) 78%);
}
.band-line {
  font-weight: 600; font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem); line-height: 1.3;
  letter-spacing: -0.02em; color: var(--ink);
  max-width: 760px; margin-inline: auto;
}
.band-line strong { font-weight: 800; color: var(--teal-dark); }

/* --- Steps (first week) ------------------------------------------------ */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 44px; }
.step {
  background: var(--paper); border-radius: var(--radius-card);
  padding: 28px; box-shadow: var(--shadow-card);
}
.step .day {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 10px; border-radius: 999px;
  background: var(--ink); color: var(--oat);
  font-weight: 700; font-size: 0.78rem; font-style: italic; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.step p { color: var(--charcoal); font-size: 0.96rem; }

/* --- Trust band -------------------------------------------------------- */
.trust { background: var(--ink); color: var(--oat); border-radius: var(--radius-card); padding: clamp(40px, 6vw, 64px); }
.trust .eyebrow { color: var(--teal); }
.trust .section-title { color: var(--paper); }
.trust p { color: rgba(246, 242, 238, 0.72); }
.trust-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 30px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; width: 22px; height: 22px; stroke: var(--teal); margin-top: 2px; }
.trust-item b { color: var(--paper); display: block; font-weight: 600; }
.trust-item span { color: rgba(246, 242, 238, 0.66); font-size: 0.94rem; }
.trust a { color: var(--teal); }

/* --- FAQ (two-column) -------------------------------------------------- */
.faq-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .faq-grid { grid-template-columns: 320px 1fr; gap: 56px; } }
.faq-list { display: grid; gap: 14px; }
.qa {
  background: var(--paper); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 4px 24px; overflow: hidden;
}
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-style: italic; font-size: 1.05rem; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { flex: none; width: 20px; height: 20px; stroke: var(--stone); transition: transform 0.2s ease; }
.qa[open] summary .chev { transform: rotate(180deg); }
.qa p { color: var(--charcoal); font-size: 0.98rem; padding-bottom: 22px; max-width: 60ch; }

/* --- Final CTA --------------------------------------------------------- */
.final { text-align: center; }
.app-icon {
  width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px;
  box-shadow: var(--shadow-card); display: block;
}

/* --- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--warm-mist); padding-block: 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 22px 36px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--charcoal); text-decoration: none; font-size: 0.94rem; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { color: var(--stone); font-size: 0.86rem; }

/* --- Legal / content pages -------------------------------------------- */
.doc { max-width: 740px; }
.doc .back { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-ink); text-decoration: none; font-weight: 600; margin-bottom: 26px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 800; font-style: italic; letter-spacing: -0.02em; color: var(--ink); }
.doc .updated { color: var(--stone); font-size: 0.9rem; margin-top: 6px; margin-bottom: 28px; }
.doc h2 { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 34px; margin-bottom: 10px; }
.doc p, .doc li { color: var(--slate); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc .contact-card { background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 24px 26px; margin: 8px 0 8px; }
.doc .contact-card p { margin: 0; }
.doc .contact-card .lead { color: var(--ink); font-weight: 600; margin-bottom: 6px; }

/* --- Accessibility / focus / motion ----------------------------------- */
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; border-radius: 6px; }

@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Small screens ----------------------------------------------------- */
@media (max-width: 560px) {
  .feature-card, .step, .trust { padding: 26px 22px; }
  .qa { padding-inline: 20px; }
}
