/* =============================================================
   CABOO · FRESH SYSTEM — site.css
   Painting layer for the new landing experience. Hero first.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- page frame ---- */
.page {
  min-height: calc(100vh - 32px);
  margin: 16px;                 /* the white gutter — cream fills the rest */
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: var(--r-frame);
  padding: clamp(26px, 3.4vw, 52px) clamp(20px, 3.2vw, 44px) clamp(30px, 3.4vw, 60px);
  overflow: hidden;
}
/* content shell — full-width cream, but the content within is contained */
.shell {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(40px, 7.5vh, 92px);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: clamp(24px, 2vw, 30px); width: auto; }
.signin {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  background: #efeae2;
  border: 1px solid var(--rule);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.signin:hover { background: #e7e1d7; }

/* ---- hero upper region ---- */
.hero {
  position: relative;
}
.hero__top {
  position: relative;
  width: 100%;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  color: var(--head-mute);
  margin: 0;
  /* engraved / inset: bright lip below the cut + a soft shadow inside the top edge */
  text-shadow: 0 1px 0 rgba(255, 255, 255, .92), 0 -1px 2px rgba(26, 22, 19, .08);
}
.hero__title .em { color: var(--espresso); }

/* rotating word */
.rotator {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  transition: width .45s var(--ease);
}
.rotator__word {
  display: inline-block;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  will-change: transform, opacity;
}
.rotator__word.is-out { opacity: 0; transform: translateY(-.36em); }
.rotator__word.is-in  { opacity: 0; transform: translateY(.36em); }
@media (prefers-reduced-motion: reduce) {
  .rotator, .rotator__word { transition: none; }
}

/* AI tiles inline in the headline */
.tiles {
  display: inline-flex;
  align-items: center;
  gap: .06em;
  margin: 0 .16em;
  vertical-align: -.08em;
}
.tile {
  --rot: 0deg;
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.tile__face {
  width: .82em;
  height: .82em;
  border-radius: var(--r-tile);
  background: #fff;
  box-shadow: var(--shadow-tile);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--rot));
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  animation: tile-in .5s var(--ease) backwards;
}
.tile__face img { width: 58%; height: 58%; object-fit: contain; pointer-events: none; }
.tile:nth-child(1) { --rot: -7deg; }
.tile:nth-child(2) { --rot: 4deg;  margin-left: -.05em; }
.tile:nth-child(3) { --rot: -4deg; margin-left: -.05em; }
.tile:nth-child(4) { --rot: 7deg;  margin-left: -.05em; }
.tile:nth-child(1) .tile__face { animation-delay: .04s; }
.tile:nth-child(2) .tile__face { animation-delay: .12s; }
.tile:nth-child(3) .tile__face { animation-delay: .20s; }
.tile:nth-child(4) .tile__face { animation-delay: .28s; }
.tile:hover .tile__face,
.tile:focus-visible .tile__face {
  transform: translateY(-.12em) scale(1.1) rotate(var(--rot));
  box-shadow: 0 6px 14px rgba(26, 22, 19, .16), 0 18px 36px -18px rgba(26, 22, 19, .5);
}
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile__face { outline: 2px solid var(--coral-2); outline-offset: 3px; }
@keyframes tile-in {
  from { opacity: 0; transform: translateY(.18em) scale(.4) rotate(var(--rot)); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot)); }
}

/* interactive tooltip — upright (sits on .tile, not the rotated face) */
.tile::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 11px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 8px;
  box-shadow: 0 8px 20px -8px rgba(26, 22, 19, .5);
  text-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 5;
}
.tile::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  transition: opacity .2s var(--ease);
  z-index: 5;
}
.tile:hover::after,
.tile:focus-visible::after,
.tile.show-tip::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.tile:hover::before,
.tile:focus-visible::before,
.tile.show-tip::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tile__face { animation: none; }
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  margin-top: clamp(28px, 4.4vh, 46px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.06rem;
  color: #fff;
  background: linear-gradient(180deg, var(--coral-1), var(--coral-2));
  padding: 16px 28px;
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-btn);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.cta:hover { transform: translateY(-1px); filter: saturate(108%) brightness(1.02); }
.cta:active { transform: translateY(0); }

/* aside paragraph */
.hero__aside {
  margin-top: 22px;
  max-width: 440px;
}
.hero__aside p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--body);
}
.hero__aside strong { color: var(--espresso); font-weight: 600; }

/* ---- stage (hero photo + chat overlay) ---- */
.stage {
  position: relative;
  margin-top: clamp(34px, 5.6vh, 64px);
  border-radius: clamp(18px, 2vw, 26px);
  overflow: hidden;
  height: clamp(440px, 58vh, 640px);
}
.stage__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* chat card */
.chat {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  transform-origin: bottom center;
  width: min(480px, 88%);
  background: rgba(30, 23, 18, .42);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -12px 50px -18px rgba(0, 0, 0, .6);
  color: #f4ece0;
  overflow: hidden;
  animation: drawer-up .8s var(--ease) .25s backwards;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease);
  will-change: transform;
}
.chat:hover {
  transform: translateX(-50%) scale(1.018);
  box-shadow: 0 -18px 62px -16px rgba(0, 0, 0, .66);
}
@keyframes drawer-up {
  from { transform: translateX(-50%) translateY(54px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.chat__grip {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  margin: 11px auto 2px;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 18px 12px;
  font-weight: 500;
  font-size: .95rem;
  color: #fff;
}
.chat__head img { width: 20px; height: 20px; border-radius: 5px; background: #fff; padding: 2px; }
.chat__body { padding: 16px 16px 4px; }
.chat__user {
  margin: 0 0 16px auto;
  max-width: 82%;
  width: fit-content;
  background: rgba(255, 255, 255, .13);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: .95rem;
  line-height: 1.4;
  color: #f3ece0;
}
.chat__confirm { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.chat__label {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.chat__biz { margin: 12px 0 4px; font-family: var(--font-mono); font-size: .92rem; color: #f4ece0; }
.chat__addr { margin: 0 0 14px; font-family: var(--font-mono); font-size: .85rem; color: #cbbfae; }
.chat__time {
  display: inline-block;
  background: #fff;
  color: #1a1613;
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 10px;
}
.chat__composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .10);
  border-radius: 14px;
  color: #e9ddca;
}
.chat__composer svg { width: 18px; height: 18px; display: block; }

/* ---- responsive ---- */
@media (min-width: 1040px) {
  .hero__aside {
    position: absolute;
    bottom: 0;            /* sit at the base of the headline — on the "finger!" line */
    right: 0;
    width: clamp(252px, 25%, 330px);
    max-width: none;
    margin: 0;
  }
}
@media (max-width: 860px) {
  .hero__title br { display: none; }
  .hero__aside { margin-top: 18px; }
}
@media (max-width: 560px) {
  .chat { width: 94%; }
  .chat__body { padding: 13px 13px 2px; }
  .stage { height: clamp(480px, 78vh, 600px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat { animation: none; }
}

/* =============================================================
   SECTIONS — shared rhythm
   ============================================================= */
.pricing,
.faq { padding-block: clamp(64px, 9vh, 124px); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 14px;
}
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vh, 60px);
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--espresso); }
.section-sub {
  margin: 16px auto 0;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--ink-2);
}

/* ---- pricing ---- */
.price-card {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(26, 22, 19, .04), 0 30px 60px -34px rgba(26, 22, 19, .26);
  text-align: center;
}
.billing-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
}
.price-toggle { display: flex; justify-content: center; margin-bottom: 22px; }
.price-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 500;
  user-select: none;
}
.price-toggle__opt { color: var(--ink-3); transition: color .2s var(--ease); white-space: nowrap; }
.price-toggle__opt.is-monthly { color: var(--ink); }
.price-toggle__save {
  color: var(--coral-ink);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
}
.price-toggle__track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--rule);
  transition: background .2s var(--ease);
}
.price-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 22, 19, .3);
  transition: transform .22s var(--ease);
}
.billing-toggle:checked ~ .price-toggle .price-toggle__track { background: var(--coral-2); }
.billing-toggle:checked ~ .price-toggle .price-toggle__knob { transform: translateX(20px); }
.billing-toggle:checked ~ .price-toggle .is-monthly { color: var(--ink-3); }
.billing-toggle:checked ~ .price-toggle .is-annual { color: var(--ink); }
.billing-toggle:focus-visible ~ .price-toggle .price-toggle__track { outline: 2px solid var(--coral-2); outline-offset: 3px; }

.price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}
.price-currency { margin-top: .35em; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--ink-2); }
.price-num { font-size: clamp(3.4rem, 6.4vw, 4.4rem); letter-spacing: -.02em; }
.price-num--annual { display: none; }
.price-period {
  align-self: flex-end;
  margin-bottom: .55em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-3);
}
.billing-toggle:checked ~ .price-amount .price-num--monthly { display: none; }
.billing-toggle:checked ~ .price-amount .price-num--annual { display: inline; }
.price-note { margin: 10px 0 0; font-size: var(--fs-small); color: var(--ink-3); }
.note-annual { display: none; }
.billing-toggle:checked ~ .price-note .note-monthly { display: none; }
.billing-toggle:checked ~ .price-note .note-annual { display: inline; }

.price-feats {
  list-style: none;
  margin: 24px 0;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 13px;
  text-align: left;
}
.price-feats li {
  position: relative;
  padding-left: 30px;
  font-size: var(--fs-body);
  color: var(--ink-2);
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--coral-2);
  border-radius: 50%;
}
.price-cta { width: 100%; justify-content: center; margin-top: 4px; }
.price-fine { margin: 14px 0 0; font-size: var(--fs-small); color: var(--ink-3); }

/* ---- faq ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-weight: 500;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--espresso); }
.faq-mark { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--coral-ink);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.faq-mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-mark::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-ans {
  padding: 0 4px 24px;
  max-width: 62ch;
  color: var(--ink-2);
  line-height: 1.6;
}
.faq-ans p { margin: 0; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--rule);
  margin-top: clamp(20px, 4vh, 48px);
  padding-top: clamp(44px, 5vh, 64px);
  padding-bottom: 10px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__brand { max-width: 300px; }
.footer__brand img { height: 26px; width: auto; margin-bottom: 14px; }
.footer__brand p { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-3); }
.footer__nav { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 {
  margin: 0 0 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
}
.footer__col a { font-size: var(--fs-small); color: var(--ink-2); transition: color .15s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vh, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--fs-small);
  color: var(--ink-3);
}
@media (max-width: 620px) {
  .footer__top { flex-direction: column; gap: 28px; }
}

/* =============================================================
   AUTH — sign in / magic link
   ============================================================= */
.auth-wrap {
  max-width: 600px;
  margin: clamp(40px, 8vh, 110px) auto 0;
  text-align: center;
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--head-mute);
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .92), 0 -1px 2px rgba(26, 22, 19, .08);
}
.auth-sub {
  margin: 16px auto 0;
  max-width: 420px;
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--ink-2);
}
.auth-card {
  margin: clamp(28px, 4vh, 44px) auto 0;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(26, 22, 19, .04), 0 30px 60px -34px rgba(26, 22, 19, .26);
  padding: clamp(26px, 4vw, 38px);
  text-align: left;
}
.auth-label {
  display: block;
  margin-bottom: 9px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-2);
}
.auth-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.auth-field:focus-within {
  border-color: var(--coral-2);
  box-shadow: 0 0 0 4px rgba(242, 94, 64, .16);
}
.auth-field__icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink); }
.auth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 15px 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
}
.auth-field input::placeholder { color: var(--ink-3); }
.auth-cta {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 22px auto 0;
  text-align: center;
}
.auth-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 560px;
  margin: 18px auto 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px dashed var(--rule);
  border-radius: 18px;
  text-align: left;
}
.auth-alt__text { display: flex; flex-direction: column; gap: 2px; }
.auth-alt__small { font-size: var(--fs-small); color: var(--ink-2); }
.auth-alt__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -.01em;
  color: var(--head-mute);
}
.auth-alt__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-body);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(26, 22, 19, .04);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.auth-alt__btn:hover { background: var(--canvas); transform: translateY(-1px); }

@media (max-width: 560px) {
  .auth-alt { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
  .auth-alt__btn { justify-content: center; }
}
