/* ============================================================
   Tiny Toast — styles  (revision 2: critique passes 1+2 applied)
   Adapted from the "Tuple" design system.
   ============================================================ */

:root {
  /* Brand accents */
  --iris:   #6a5ed9;  /* primary CTA only */
  --iris-700: #5a4fc4;
  --cobalt: #3f71d4;
  --coral:  #db5434;
  --coral-ink: #bd4022;  /* AA-safe coral for small text */
  --sprout: #1bb152;
  --sprout-ink: #117a39; /* AA-safe sprout for text */

  /* Real per-app highlight colors (sampled from app icons) */
  --chalk: #44b5ef;       --chalk-ink: #0e76b8;      /* Chalk = sky blue */
  --letterbox: #1b5e42;   --letterbox-ink: #134e36;  /* Letterbox = green */

  /* Neutrals (true zinc, warmed a hair toward cream) */
  --canvas: #faf9f7;
  --card:   #ffffff;
  --ink:    #27272a;  /* zinc 800 */
  --muted:  #57575d;  /* darkened for small-text contrast (AA) */
  --muted-2:#5f5f66;  /* AA-safe secondary text */
  --border: #e4e4e7;  /* zinc 200 */
  --dark:   #18181b;  /* zinc 900 */

  /* System — three radii only */
  --maxw: 1200px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(24,24,27,0.04), 0 4px 12px rgba(24,24,27,0.05);
  --shadow-md: 0 10px 30px -8px rgba(24,24,27,0.12);
  --shadow-lg: 0 25px 50px -12px rgba(24,24,27,0.28);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv05", "cv06", "ss01";
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ----- Typography helpers ----- */
.eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);          /* neutral by default; tracking carries personality */
  margin-bottom: 12px;
}
.eyebrow--light { color: #d4d4d8; }
.eyebrow--coral { color: var(--coral-ink); }
.eyebrow--cobalt { color: var(--cobalt); }
.eyebrow--sprout { color: var(--sprout-ink); }
.hero .eyebrow { color: var(--coral-ink); }

.hero__title {
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.accent-coral { color: var(--coral); }

.heading-lg {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
}
.lede {
  font-size: 18px;
  color: var(--muted-2);
  max-width: 46ch;
  margin-top: 20px;
}

/* Shared section intro block */
.section__head { max-width: 640px; }
.section__head .heading-lg { margin-top: 4px; }
.section__lede {
  font-size: 18px;
  color: var(--muted-2);
  max-width: 56ch;
  margin-top: 16px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn--sm { padding: 8px 16px; font-size: 14px; border-radius: var(--r-sm); }

.btn--primary {
  background: var(--iris);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(106,94,217,0.45);
}
.btn--primary:hover { background: var(--iris-700); transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(106,94,217,0.55); }

.btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--muted-2); background: #fafafa; transform: translateY(-1px); }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__logo { width: 36px; height: 36px; object-fit: contain; display: block; }
.nav .brand { font-size: 21px; }
.nav .brand__logo { width: 46px; height: 46px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav__links a:not(.btn):hover { color: var(--coral-ink); }
.nav__links a.btn--primary { color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(var(--border) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--canvas);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Stats strip */
.stats {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 16px 0 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--border);
}
.stats li {
  display: flex;
  flex-direction: column;
  min-width: 104px;
  padding: 8px 32px;
  border-right: 1px solid var(--border);
}
.stats li:first-child { padding-left: 0; min-width: 72px; }
.stats li:last-child { border-right: 0; }
.stats strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stats__rating { display: inline-flex; align-items: center; gap: 5px; }
.stats__rating svg { transform: translateY(-1px); }
.stats__sprout { color: var(--sprout-ink); }
.stats span { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Phone mockup + offset backdrop panel */
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__panel {
  position: absolute;
  width: 330px; height: 520px;
  background: #f4efe8;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transform: rotate(6deg) translate(24px, 0);
}
.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: var(--dark);
  border-radius: 44px;
  padding: 13px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.phone__notch {
  position: absolute;
  top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 130px; height: 24px;
  background: var(--dark);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(165deg, #ffffff 0%, #f5f1ea 100%);
  padding: 60px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phone__eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.phone__title { font-size: 23px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.phone__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 200px;
  margin: 40px 0 18px;
}
.phone__grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.phone__grid .is-found {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  animation: found 4s ease-in-out infinite;
}
.phone__grid .is-found:nth-child(2) { animation-delay: .15s; }
.phone__grid .is-found:nth-child(3) { animation-delay: .3s; }
@keyframes found {
  0%, 70%, 100% { transform: translateY(0); }
  80%           { transform: translateY(-5px); }
}
.phone__caption {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  color: var(--muted);
}
.phone__caption b { color: var(--coral-ink); font-weight: 500; }
.phone__chips { display: flex; gap: 8px; margin-top: auto; }
.chip {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 9999px;
  background: #f4f4f5;
  color: var(--muted);
}
.chip--coral  { background: #fdeae4; color: var(--coral-ink); }
.chip--cobalt { background: #e7eefb; color: var(--cobalt); }
.chip--sprout { background: #e2f6eb; color: var(--sprout-ink); }

/* ============================================================
   Sections + rhythm
   ============================================================ */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--white { background: var(--card); border-bottom: 1px solid var(--border); }

/* ----- Grids ----- */
.grid { display: grid; gap: 24px; margin-top: 48px; }
.section__head + .grid { margin-top: 48px; }
.grid--apps { grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin-inline: auto; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ----- Cards ----- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* On the white Apps section, cards sit on canvas for figure/ground */
.section--white .card { background: var(--canvas); }

/* App cards */
.app-card { display: flex; flex-direction: column; border-top: 3px solid var(--border); color: inherit; }
.grid--apps .app-card { padding: 32px 30px; }
.grid--apps .app-card__icon { width: 60px; height: 60px; }
.app-card--coral  { border-top-color: var(--coral); }
.app-card--cobalt { border-top-color: var(--cobalt); }
.app-card--sprout { border-top-color: var(--sprout); }
.app-card--iris   { border-top-color: var(--iris); }
.app-card--chalk     { border-top-color: var(--chalk); }
.app-card--letterbox { border-top-color: var(--letterbox); }

.app-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r);
  margin-bottom: 18px;
}
.app-card--coral  .app-card__icon { background: #fdeae4; color: var(--coral); }
.app-card--cobalt .app-card__icon { background: #e7eefb; color: var(--cobalt); }
.app-card--sprout .app-card__icon { background: #e2f6eb; color: var(--sprout-ink); }
.app-card--iris   .app-card__icon { background: #efedfc; color: var(--iris); }

/* Real app-icon images: designed objects, no tinted plate */
.app-card__icon--img { background: none; padding: 0; box-shadow: none; }
.app-card__icon--img img {
  width: 100%; height: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Truthful feature pills give the 2-up cards substance */
.app-card__features {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 18px 0 0;
}
.app-card__features li {
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: #f4f4f5;
  border: 1px solid #d9d9de;
  border-radius: 9999px;
  padding: 4px 11px;
}

.app-card h3 { font-size: 21px; font-weight: 700; }
.app-card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 8px; }
.app-card__tagline {
  font-style: italic;
  color: var(--muted-2);
  font-size: 15px;
  margin-top: 12px;
}
.app-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 22px;
}
.tag {
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.tag--coral  { color: var(--coral-ink);  border-color: color-mix(in srgb, var(--coral) 35%, var(--border)); }
.tag--cobalt { color: var(--cobalt);     border-color: color-mix(in srgb, var(--cobalt) 35%, var(--border)); }
.tag--chalk     { color: var(--chalk-ink);     border-color: color-mix(in srgb, var(--chalk) 45%, var(--border)); }
.tag--letterbox { color: var(--letterbox-ink); border-color: color-mix(in srgb, var(--letterbox) 35%, var(--border)); }
.tag--sprout { color: var(--sprout-ink); border-color: color-mix(in srgb, var(--sprout) 35%, var(--border)); }
.tag--iris   { color: var(--iris);       border-color: color-mix(in srgb, var(--iris) 35%, var(--border)); }
.app-card__link {
  font-size: 13px; font-weight: 600; color: var(--ink);
  opacity: 0.8; transform: translateX(0);
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
}
.app-card--cobalt .app-card__link { color: var(--cobalt); }
.app-card--coral  .app-card__link { color: var(--coral-ink); }
.app-card--chalk     .app-card__link { color: var(--chalk-ink); }
.app-card--letterbox .app-card__link { color: var(--letterbox-ink); }
.app-card:hover .app-card__link { opacity: 1; transform: translateX(3px); }
.app-card--cobalt:hover { border-color: color-mix(in srgb, var(--cobalt) 35%, var(--border)); }
.app-card--coral:hover  { border-color: color-mix(in srgb, var(--coral) 35%, var(--border)); }
.app-card--chalk:hover     { border-color: color-mix(in srgb, var(--chalk) 45%, var(--border)); }
.app-card--letterbox:hover { border-color: color-mix(in srgb, var(--letterbox) 45%, var(--border)); }

/* Feature cards — rotate accent colors, no filled tile */
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r);
  margin-bottom: 18px;
}
.feature--coral  .feature__icon { background: #fdeae4; color: var(--coral); }
.feature--cobalt .feature__icon { background: #e7eefb; color: var(--cobalt); }
.feature--sprout .feature__icon { background: #e2f6eb; color: var(--sprout-ink); }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 8px; }

/* ============================================================
   Dark band
   ============================================================ */
.band {
  color: #fafafa;
  padding: clamp(72px, 10vw, 108px) 0;
  background:
    radial-gradient(640px 320px at 50% 0%, rgba(255,255,255,0.06), transparent 70%),
    linear-gradient(180deg, #1d1b1a, #161513);
}
.band .eyebrow { color: #c7c7cf; }
.band__title { max-width: 26ch; color: #fff; }
.band__lede { color: #a1a1aa; font-size: 18px; max-width: 56ch; margin-top: 18px; }
.band__values { margin-top: 48px; }
.value { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; position: relative; }
.value::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 40px; height: 2px;
}
.value--coral::before  { background: #f08a6e; }
.value--cobalt::before { background: #7aa0e6; }
.value--sprout::before { background: #5cd08a; }
.value__num {
  font-family: "DM Mono", monospace;
  font-size: 32px; font-weight: 500;
  margin-bottom: 12px; color: #fff;
}
.value--coral  .value__num { color: #f08a6e; }
.value--cobalt .value__num { color: #7aa0e6; }
.value--sprout .value__num { color: #5cd08a; }
.value h3 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.value p { color: #a1a1aa; font-size: 15px; line-height: 1.5; }

/* ============================================================
   About split
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.split__copy p { color: var(--muted); margin-top: 16px; }
.split__copy .btn { margin-top: 28px; }

.split__media {
  position: relative;
  min-height: 380px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #1e1b2e;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.mesh { position: absolute; inset: 0; filter: blur(58px); opacity: 0.55; }
.mesh__blob { position: absolute; border-radius: 9999px; }
.mesh__blob--coral  { width: 240px; height: 240px; background: var(--coral);  top: -50px; left: -30px; animation: float 9s ease-in-out infinite; }
.mesh__blob--sprout { width: 210px; height: 210px; background: var(--sprout); bottom: -60px; right: -20px; }
.mesh__blob--iris   { width: 140px; height: 140px; background: var(--iris);   top: 52%; left: 40%; animation: float 11s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}
.quote {
  position: relative;
  margin: 0;
  padding: 36px;
  color: #fff;
}
.quote__label {
  font-family: "DM Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.quote__text { font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; color: #d4d4d8; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: clamp(56px, 7vw, 88px) 0; }
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #f5f3fe, #efedfc);
  border: 1px solid color-mix(in srgb, var(--iris) 30%, var(--border));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(48px, 7vw, 80px) 24px;
}
.cta__orb {
  position: absolute;
  width: 360px; height: 360px;
  right: -150px; top: -150px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, rgba(167,139,250,0.45), rgba(106,94,217,0.12) 55%, transparent 75%);
  filter: blur(60px);
}
.cta__orb--2 {
  width: 260px; height: 260px;
  left: -120px; top: auto; bottom: -120px; right: auto;
  opacity: 0.7;
}
.cta > :not(.cta__orb) { position: relative; }
.cta .eyebrow { color: var(--iris); }
.cta__title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; margin: 4px auto 0; }
.cta__lede { margin-left: auto; margin-right: auto; }
.cta__actions { justify-content: center; }
.cta__email { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cta__email a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--card);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__tagline { font-size: 15px; color: var(--ink); margin-top: 14px; font-weight: 500; }
.footer__butter { font-size: 14px; color: var(--muted); margin-top: 8px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__heading {
  font-family: "DM Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.footer__col a { font-size: 15px; color: var(--muted); }
.footer__col a:hover { color: var(--coral-ink); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer__bottom p { font-size: 13px; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__art { order: -1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__media { order: -1; min-height: 300px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nav__links { gap: 14px; }
  .nav__links a:not(.btn) { display: none; }
  .grid--apps, .grid--3 { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 8px 0; }
  .stats li { padding: 8px 20px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; transition: none !important; }
}
