/* MIRAI · breakpoints: 960 tablet · 760 mobile · 359 small · flags no <html>: .js .motion */

/* 1 · fontes (Plex JP só p/ 未来 via unicode-range) */
@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url(fonts/geist-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url(fonts/geist-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url(fonts/geist-mono-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url(fonts/geist-mono-500-latin.woff2) format('woff2'); }

@font-face { font-family: 'IBM Plex Sans JP'; font-weight: 400; font-display: swap; src: url(fonts/plex-jp-400-mi.woff2) format('woff2'); unicode-range: U+672A; }
@font-face { font-family: 'IBM Plex Sans JP'; font-weight: 400; font-display: swap; src: url(fonts/plex-jp-400-rai.woff2) format('woff2'); unicode-range: U+6765; }

/* 2 · tokens */
:root {
  --paper: #F4F4F2;
  --paper-2: #ECECE8;
  --ink: #0A0A0A;
  --ink-2: #4A4946;
  --ink-3: #6B6A66;
  --ink-4: #9A9893;
  --rule: #D6D6D2;
  --red: #C7372A;
  --night-ink-2: #B5B3AE;
  --night-rule: #2A2A28;

  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --jp: 'IBM Plex Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 7vw, 96px);
}
@media (max-width: 760px) { :root { --section-y: 48px; --gutter: 20px; } }
@media (max-width: 359px) { :root { --gutter: 16px; } }

/* 3 · base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

main [id], footer[id] { scroll-margin-top: 24px; }

/* 4 · header (sticky, .is-hidden ao descer; menu fullscreen <760) */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(244 244 242 / .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.site-header.is-hidden { transform: translateY(-101%); }
.bar { display: flex; align-items: center; gap: 14px 40px; padding: 20px 0; border-bottom: 1px solid var(--ink); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand svg { display: block; flex: none; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover svg { transform: rotate(-12deg) scale(1.06); }
.wordmark { display: flex; align-items: baseline; font-family: var(--mono); font-weight: 500; line-height: 1; font-size: 20px; }
.wordmark .dot { color: var(--red); margin: 0 -.12em; }
.wordmark .tld { font-size: 8px; color: var(--red); }

.nav, .bar-cta { font-family: var(--mono); font-size: 13px; }
.nav { display: flex; gap: 28px; }
.nav a, .bar-cta { white-space: nowrap; }
.bar-cta { color: var(--red); }
.bar-cta:hover { color: var(--ink); }
.menu-btn, .nav-wa { display: none; }

@media (max-width: 960px) {
  .bar { column-gap: 24px; }
  .nav { gap: 20px; }
}

@media (max-width: 760px) {
  .bar { padding: 12px 0; flex-wrap: wrap; gap: 12px 24px; }
  .bar-cta { display: none; }

  html:not(.js) .nav { order: 3; flex-basis: 100%; gap: 22px; overflow-x: auto; }
  .js .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
    font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  }
  .js .nav {
    position: fixed; top: 100%; left: 0; right: 0; z-index: 19;
    height: calc(100dvh - var(--hdr, 69px)); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 32px;
    background: var(--paper); border-top: 1px solid var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav-open { overflow: hidden; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open .site-header { transform: none; }
  .js .nav a { padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
  .js .nav .nav-wa {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding: 0 22px; height: 56px; border: 0; border-radius: 2px;
    background: var(--ink); color: var(--paper); font-size: 17px; letter-spacing: 0;
  }
  .js .nav .nav-wa span { font-family: var(--mono); }
}

/* 5 · botões e links */
.btn {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 24px; gap: 40px;
  background: var(--ink); color: var(--paper); border-radius: 2px;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.btn:hover { color: var(--paper); background: var(--red); }
.btn .arrow { font-family: var(--mono); }
.btn--red { background: var(--red); height: 60px; padding: 0 26px; gap: 48px; font-size: 17px; }
.btn--red:hover { background: var(--paper); color: var(--ink); }
.btn--line { background: transparent; color: var(--paper); border: 1px solid var(--paper); }
.btn--line:hover { background: var(--paper); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.nav a, .bar-cta, .foot-col a {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s cubic-bezier(.2, .7, .2, 1), color .2s;
}
.nav a:hover, .bar-cta:hover, .foot-col a:hover { background-size: 100% 1px; }

/* 6 · hero (2 col >960) */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
  gap: 56px clamp(48px, 6vw, 112px);
  padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.hero-main { min-width: 0; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.hero h1 { font-weight: 500; font-size: clamp(56px, 5.2vw, 84px); line-height: .98; letter-spacing: -.045em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero-lede { max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(44px, 7.4vw, 72px); }
}
@media (max-width: 760px) {
  .hero { padding: 40px 0 48px; gap: 40px; }
  .hero-main { gap: 28px; }
  .hero h1 { font-size: clamp(40px, 11.2vw, 60px); }
  .hero-lede { font-size: 17px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* 7 · chat, carimbos, ledger (::after = pontilhado) */
.chat { font-family: var(--mono); font-size: 15px; line-height: 1.5; }
.chat li { display: grid; grid-template-columns: 64px 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.chat li:first-child { border-top-color: var(--ink); }
.chat li:last-child { border-bottom: 1px solid var(--ink); }
.chat .from-client { color: var(--ink-3); }
.chat .from-manu .time, .chat .from-manu .who { color: var(--red); }
.chat .from-system .time, .chat .from-system .who { color: var(--ink-3); }
.chat .audio { color: var(--ink); }

.chat--stacked li { grid-template-columns: auto 1fr; gap: 4px 12px; }
.chat--stacked .msg { grid-column: 1 / -1; }

.hero-demo { margin: 0; min-width: 0; }
.demo-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 12px 0; border-top: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.hero-demo .chat { font-size: 14px; }
.hero-demo .chat li { grid-template-columns: 48px 64px minmax(0, 1fr); gap: 12px; padding: 13px 0; }
.hero-demo .chat li:first-child { border-top-color: var(--rule); }
.hero-demo .chat li:last-child { border-bottom-color: var(--rule); }

.stamp-pago {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  margin-left: 12px; padding: 3px 8px 3px 3px;
  border: 1.5px solid var(--red); border-radius: 3px; transform: rotate(-6deg);
  color: var(--red); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; line-height: 1;
}
.stamp-pago svg { width: 16px; height: 16px; display: block; }
.stamp-mini { width: 22px; height: 22px; display: inline-block; vertical-align: -5px; margin-left: 8px; transform: rotate(-8deg); }

.ledger div { display: flex; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.ledger div:last-child { border-bottom-color: var(--ink); }
.ledger div::after { content: ''; order: 1; flex: 1 1 16px; margin: 0 10px; border-bottom: 1px dotted var(--ink-4); }
.ledger dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ledger dd { order: 2; font-weight: 500; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-feed { margin-top: 10px; min-height: 1.5em; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ledger-feed .new { color: var(--red); }

@media (max-width: 760px) {
  .chat li, .hero-demo .chat li { grid-template-columns: auto 1fr; gap: 4px 12px; }
  .chat .msg { grid-column: 1 / -1; }
  .stamp-pago { margin: 10px 0 0; display: flex; width: max-content; }
  .ledger dd { font-size: 20px; }
}
@media (max-width: 359px) { .ledger dd { font-size: 18px; } }

/* 8 · layout de seção: lateral | --wide | --last */
.section { display: flex; flex-wrap: wrap; gap: 24px 80px; padding: var(--section-y) 0; border-bottom: 1px solid var(--rule); }
.section--last { border-bottom: 0; }
.section-head { flex: 0 1 300px; display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-weight: 500; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; }
.section-head p { max-width: 420px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.section-body { flex: 1 1 560px; min-width: 0; }

.section--wide { row-gap: clamp(32px, 4vw, 48px); }
.section--wide .section-head { flex: 1 1 100%; flex-flow: row wrap; justify-content: space-between; align-items: flex-end; gap: 12px 48px; }
.section--wide .section-body { flex: 1 1 100%; }

@media (max-width: 760px) {
  .section { gap: 20px; }
  .section-head { flex-basis: 100%; gap: 8px; }
  .section-head h2 { font-size: 30px; }
  .section--wide .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 9 · como funciona */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ink); }
.step-num { font-family: var(--mono); font-weight: 500; font-size: clamp(56px, 6vw, 88px); line-height: 1; letter-spacing: -.04em; transition: color .3s; }
.step h3 { font-weight: 500; font-size: 28px; letter-spacing: -.02em; }
.step p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; padding: 18px 0; }
  .step-num { grid-row: span 2; font-size: 36px; }
  .step h3 { font-size: 23px; }
  .step p { grid-column: 2; font-size: 16px; }
}

/* 10 · o que a Manu faz: .feature + .compare */
.feature { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--rule); }
.feature:first-child { border-top-color: var(--ink); }
.feature:last-child { border-bottom: 1px solid var(--ink); }
.feature h3 { flex: 1 1 260px; font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.025em; transition: color .2s; }
.feature p { flex: 1 1 300px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.compare-col { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.compare-col:first-child { padding-right: clamp(20px, 3vw, 40px); border-right: 1px solid var(--rule); }
.compare-col:last-child { padding-left: clamp(20px, 3vw, 40px); }
.compare-col .label--red { color: var(--red); }
.compare-col .chat li:first-child { border-top-color: var(--rule); }
.compare-col .chat li:last-child { border-bottom-color: var(--rule); }
.menu-bot { font-family: var(--mono); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--ink-3); }
.compare-note { margin-top: auto; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 760px) {
  .feature { padding: 20px 0; gap: 6px; }
  .feature h3 { font-size: 23px; flex-basis: 100%; }
  .feature p { font-size: 16px; flex-basis: 100%; }
  .compare { grid-template-columns: 1fr; }
  .compare-col:first-child { padding: 24px 0 32px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .compare-col:last-child { padding-left: 0; }
}

/* 11 · para quem é */
.feature--big h3 { font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -.04em; line-height: 1; }
.feature--big p { align-self: flex-end; }
@media (max-width: 760px) { .feature--big h3 { font-size: 40px; } }

/* 12 · serviços (dark) */
.services { background: var(--ink); color: var(--paper); }
.services .section { border-bottom: 0; padding: clamp(72px, 9vw, 128px) 0; row-gap: clamp(40px, 5vw, 64px); }
.services .section-head { flex: 1 1 100%; gap: 20px; }
.services .section-head h2 { max-width: 14ch; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; }
.services .section-head p { max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--night-ink-2); }
.services .section-body { flex: 1 1 100%; }
.services .label { color: var(--ink-4); }
.lede-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }

.service-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--night-rule); }
.service-list li:last-child { border-bottom: 1px solid var(--night-rule); }
.service-list .n { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.service-list h3 { font-weight: 500; font-size: clamp(28px, 3.2vw, 48px); letter-spacing: -.03em; line-height: 1; transition: color .2s; }
.service-list p { font-size: 17px; line-height: 1.55; color: var(--night-ink-2); }
.service-list .manu h3 { font-family: var(--mono); color: var(--red); letter-spacing: -.02em; }
.services-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; }
.services-foot .label { font-size: 13px; }

@media (max-width: 760px) {
  .services .section-head h2 { font-size: 40px; }
  .services .section-head p { font-size: 17px; }
  .service-list li { grid-template-columns: 32px minmax(0, 1fr); padding: 20px 0; }
  .service-list h3 { font-size: 28px; }
  .service-list p { grid-column: 2; }
  .services-foot .btn { flex: 1 1 100%; }
}

/* 13 · planos (≤960 + .js: tabs, 1 col via [data-show]) */
.plan-tabs { display: none; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.plan-col { display: flex; flex-direction: column; min-width: 0; padding: 28px 28px 32px; }
.plan-col:first-child { padding-left: 0; }
.plan-col:last-child { padding-right: 0; }
.plan-col + .plan-col { border-left: 1px solid var(--rule); }

.plan-col--featured { background: var(--paper-2); box-shadow: inset 0 3px 0 var(--red); margin-top: -1px; padding-top: 29px; }
.plan-col--featured + .plan-col { border-left-color: transparent; }

.plan-name { display: flex; align-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.plan-col--featured .plan-name { color: var(--red); }
.plan-for { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.plan-price { margin-top: 28px; font-weight: 500; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.plan-price small { margin-left: 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.plan-fee { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.ledger--plan { margin-top: 24px; border-top: 1px solid var(--ink); }
.ledger--plan div { padding: 10px 0; }
.ledger--plan div:last-child { border-bottom-color: var(--rule); }
.ledger--plan dd { font-size: 16px; letter-spacing: -.01em; }
.plan-col[data-plan="escala"] .ledger dd { font-weight: 400; color: var(--ink-2); }

.plan-plus { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.plan-feats { margin: 22px 0 28px; }
.plan-plus + .plan-feats { margin-top: 8px; }
.plan-feats li { padding: 7px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.plan-col .btn--plan { margin-top: auto; height: 52px; padding: 0 20px; font-size: 16px; }
.plans-note { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); }

@media (max-width: 960px) {

  .js .plan-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
  .js .plan-tabs button {
    display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
    min-height: 64px; padding: 12px 0; border: 0; border-top: 3px solid transparent; background: none; cursor: pointer;
    font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: left;
  }
  .js .plan-tabs button small { font-family: var(--sans); font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--ink-3); }
  .js .plan-tabs button[aria-selected="true"] { border-top-color: var(--ink); color: var(--ink); }
  .js .plan-tabs button[aria-selected="true"] small { color: var(--ink); }
  .js .plan-tabs button.is-featured { color: var(--red); }
  .js .plan-tabs button.is-featured[aria-selected="true"] { border-top-color: var(--red); }

  .js .plan-grid { grid-template-columns: 1fr; border-top: 0; }
  .js .plan-grid[data-show="essencial"] .plan-col:not([data-plan="essencial"]),
  .js .plan-grid[data-show="negocio"] .plan-col:not([data-plan="negocio"]),
  .js .plan-grid[data-show="escala"] .plan-col:not([data-plan="escala"]) { display: none; }
  .js .plan-col, .js .plan-col:first-child, .js .plan-col:last-child { padding: 24px 0 28px; border-left: 0; }
  .js .plan-col--featured { margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); box-shadow: none; }
  .js .plan-price { font-size: 44px; }

  .plan-col { padding-inline: 20px; }
  .plan-price { font-size: 32px; }
}
@media (max-width: 359px) { .js .plan-tabs button small { font-size: 17px; } }

/* 14 · faq (::details-content anima altura) */
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top-color: var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--ink-3); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 680px; padding: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

:root { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s cubic-bezier(.2, .7, .2, 1), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }

@media (max-width: 760px) {
  .faq summary { font-size: 18px; padding: 18px 0; }
  .faq details p { font-size: 16px; }
}

/* 15 · footer */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; border-top: 1px solid var(--night-rule); }
.contact .wrap { padding-top: clamp(72px, 9vw, 128px); }

.contact-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contact h2 { flex: 1 1 520px; max-width: 900px; font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
.contact [data-clock] { font-variant-numeric: tabular-nums; }
.contact-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-note { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }

.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px;
  margin-top: clamp(64px, 8vw, 112px); padding-top: 40px; border-top: 1px solid var(--night-rule);
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 340px; }
.contact .brand, .contact .wordmark { color: var(--paper); }
.foot-brand p { font-size: 15px; line-height: 1.55; color: var(--night-ink-2); }
.foot-brand .foot-kanji { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.foot-kanji span { font-family: var(--jp); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-col h3 { margin-bottom: 4px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.foot-col a { font-size: 15px; color: var(--night-ink-2); }
.foot-col a:hover { color: var(--paper); }
.foot-col li { font-size: 15px; color: var(--ink-4); }

.colophon {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 56px; padding: 20px 0 24px; border-top: 1px solid var(--night-rule);
  font-family: var(--mono); font-size: 12px; color: var(--ink-4);
}
.colophon span { white-space: nowrap; }

@media (max-width: 960px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .contact h2 { font-size: 40px; flex-basis: 100%; }
  .contact-cta { width: 100%; }
  .contact-cta .btn { align-self: stretch; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding-top: 32px; }
  .colophon { flex-direction: column; gap: 6px; }
  .colophon span { white-space: normal; }
}
@media (max-width: 359px) { .foot-grid { grid-template-columns: 1fr; } }

/* 16 · CTA fixo mobile (.is-shown via JS) */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .js .mobile-cta {
    position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 18;
    display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 22px;
    background: var(--ink); color: var(--paper); border-radius: 2px; font-weight: 500; font-size: 16px;
    box-shadow: 0 6px 24px rgb(10 10 10 / .18);
    transform: translateY(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .js .mobile-cta span { font-family: var(--mono); }
  .js .mobile-cta.is-shown { transform: none; }
  .nav-open .mobile-cta { transform: translateY(calc(100% + 24px)); }
}

/* 17 · animações (só com .motion) */
.motion .hero h1 .line > span { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.motion .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.motion .hero-foot { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) .45s both; }
.motion .demo-head, .motion .ledger, .motion .ledger-feed { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) .3s both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.motion .chat--play li { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.motion .chat--play li.is-in { opacity: 1; transform: none; }

.motion [data-stamp]:not(.is-stamped) { opacity: 0; }
.motion [data-stamp].is-stamped { animation: stampIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.motion .stamp-mini.is-stamped { animation-name: stampInMini; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.9) rotate(-14deg); } 55% { opacity: 1; transform: scale(.92) rotate(-5deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }
@keyframes stampInMini { 0% { opacity: 0; transform: scale(2.2) rotate(-18deg); } 55% { opacity: 1; transform: scale(.9) rotate(-7deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }

.ledger dd.bump { animation: bump .9s ease-out; }
@keyframes bump { 0% { color: var(--red); } 100% { color: var(--ink); } }
.motion .ledger-feed.flash { animation: fadeUp .5s cubic-bezier(.2, .7, .2, 1); }

.motion [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 760px) { .motion [data-reveal] { transform: translateY(10px); transition-duration: .6s; } }

@media (hover: hover) {
  .feature:hover h3, .service-list li:hover h3 { color: var(--red); }
  .step:hover .step-num { color: var(--red); }
  .faq summary:hover { color: var(--red); }
}
