/* Home da Kyrontec — escura, com a paleta ameixa do 9 Luas.
   Só a home usa este arquivo; produtos/* e páginas legais seguem em site.css. */

:root {
  --bg: #0D0A0C;
  --bg-2: #141014;
  --surface: #1B151A;
  --line: rgba(245, 236, 241, .10);
  --line-2: rgba(245, 236, 241, .18);
  --text: #F5EEF1;
  --text-2: #C9BCC4;          /* 10.6:1 sobre --bg */
  --muted: #9A8C95;           /* 6.2:1 sobre --bg */
  --rose: #EDB6CA;            /* barra de progresso do app */
  --plum: #8A3360;
  --plum-deep: #3A1A2E;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --wrap: min(1200px, 100% - 2 * clamp(20px, 5vw, 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rose); color: var(--bg); }

.wrap { width: var(--wrap); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; top: var(--s3); z-index: 200; background: var(--text); color: var(--bg); padding: var(--s2) var(--s4); border-radius: 6px; }
.skip:focus { left: var(--s3); }

/* ---------- Cabeçalho ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(13, 10, 12, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .25s; }
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.logo svg { width: 22px; height: 22px; }
.logo .wordmark { font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .24em; }
.masthead nav { display: flex; gap: var(--s5); margin-left: auto; align-items: center; }
.masthead nav a { text-decoration: none; color: var(--text-2); font-size: .9375rem; padding: var(--s3) 0; transition: color .2s; }
@media (hover: hover) { .masthead nav a:hover { color: var(--text); } }
@media (max-width: 640px) { .masthead nav a.hide-sm { display: none; } }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s3); min-height: 52px; padding: 0 var(--s5); border-radius: 999px; font: 600 .9688rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary svg { width: 18px; height: 18px; }
@media (hover: hover) { .btn-primary:hover { background: var(--rose); } }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--text-2); } }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: .875rem; }
.btn .arrow { transition: transform .3s var(--ease); }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(3px); } }

/* ---------- Abertura ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px); }
.hero::before { /* brilho ameixa atrás dos celulares */
  content: ""; position: absolute; width: 900px; height: 900px; right: -220px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138, 51, 96, .55), rgba(58, 26, 46, .25) 55%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1fr 1fr; } }
.kicker { color: var(--muted); margin: 0 0 var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); align-self: center; box-shadow: 0 0 0 4px rgba(237, 182, 202, .15); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.75rem, 6.6vw, 5.5rem); line-height: .98; letter-spacing: -.04em; margin: 0 0 var(--s5); text-wrap: balance; font-variation-settings: "opsz" 96, "wdth" 92; }
.hero h1 span { color: var(--rose); }
.hero .lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-2); margin: 0 0 var(--s6); max-width: 40ch; text-wrap: pretty; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Celulares com as capturas reais */
.phone { position: relative; border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #3A2E36, #17121A 40%, #0F0B0E); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -24px rgba(0,0,0,.8), 0 18px 40px -18px rgba(138,51,96,.45); }
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 27px; }
.fan { position: relative; height: clamp(440px, 52vw, 600px); }
.fan .phone { position: absolute; width: clamp(190px, 21vw, 260px); }
.fan .p1 { left: 50%; top: 2%; transform: translateX(-50%); z-index: 3; }
.fan .p2 { left: 50%; top: 10%; transform: translateX(-118%) rotate(-7deg); z-index: 2; opacity: .9; }
.fan .p3 { left: 50%; top: 10%; transform: translateX(18%) rotate(7deg); z-index: 1; opacity: .9; }
@media (max-width: 520px) {
  .fan { height: 420px; }
  .fan .phone { width: 180px; }
  .fan .p2 { transform: translateX(-98%) rotate(-7deg); }
  .fan .p3 { transform: translateX(-2%) rotate(7deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .fan .p1 { animation: rise-in .9s var(--ease) both; }
  .js .fan .p2 { animation: rise-in .9s .1s var(--ease) both; }
  .js .fan .p3 { animation: rise-in .9s .2s var(--ease) both; }
}
@keyframes rise-in { from { opacity: 0; translate: 0 24px; } }

/* ---------- 9 Luas ---------- */
.product { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg) 60%); }
.product-head { display: grid; gap: var(--s6); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .product-head { grid-template-columns: 1.3fr 1fr; } }
.brand { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.brand img { width: 56px; height: 56px; border-radius: 14px; }
.brand .status { display: inline-flex; align-items: center; gap: var(--s2); color: var(--rose); }
.brand .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.product h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1; letter-spacing: -.04em; margin: 0; text-wrap: balance; font-variation-settings: "wdth" 92; }
.product h2 span { color: var(--muted); }
.product-head p { margin: 0 0 var(--s5); color: var(--text-2); max-width: 44ch; }
.product-head .ctas { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }
.text-link { color: var(--text-2); padding: var(--s3) 0; font-weight: 500; }
@media (hover: hover) { .text-link:hover { color: var(--text); } }

/* Galeria rolável das telas */
.gallery { list-style: none; margin: 0; padding: 0 0 var(--s4); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 270px); gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery .phone { box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 24px 48px -24px rgba(0,0,0,.8); }
.gallery figcaption { margin-top: var(--s4); }
.gallery figcaption b { display: block; font-weight: 600; margin-bottom: var(--s1); }
.gallery figcaption span { color: var(--muted); font-size: .9375rem; }
.gallery-hint { margin-top: var(--s3); color: var(--muted); }
@media (min-width: 1240px) { .gallery-hint { display: none; } }

/* Recursos */
.features { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.features li { background: var(--bg); padding: var(--s6) var(--s5); }
.features svg { width: 24px; height: 24px; color: var(--rose); margin-bottom: var(--s5); stroke-width: 1.75; }
.features h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 var(--s2); }
.features p { margin: 0; color: var(--text-2); font-size: .9688rem; }
.free-note { margin: var(--s5) 0 0; color: var(--muted); font-size: .9375rem; }
.free-note b { color: var(--text); font-weight: 600; }

/* ---------- Estúdio ---------- */
.studio { padding: clamp(80px, 11vw, 152px) 0; border-top: 1px solid var(--line); }
.studio .wrap { display: grid; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 980px) { .studio .wrap { grid-template-columns: 1.15fr 1fr; } }
.studio h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.02; letter-spacing: -.035em; margin: var(--s4) 0 0; text-wrap: balance; font-variation-settings: "wdth" 92; }
.studio h2 span { color: var(--muted); }
.studio .eyebrow { color: var(--muted); margin: 0; }
.studio .prose p { margin: 0 0 var(--s5); color: var(--text-2); max-width: 54ch; }
.studio .prose strong { color: var(--text); font-weight: 600; }
.principles { list-style: none; margin: var(--s6) 0 0; padding: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s3); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.principles .n { color: var(--rose); }
.principles b { display: block; font-weight: 600; margin-bottom: var(--s1); }
.principles span { color: var(--text-2); font-size: .9688rem; }

/* ---------- Perguntas ---------- */
.faq { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.faq .wrap { display: grid; gap: var(--s7); }
@media (min-width: 980px) { .faq .wrap { grid-template-columns: .8fr 1.2fr; } }
.faq h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1; margin: 0 0 var(--s4); }
.faq .side p { color: var(--muted); margin: 0; }
.faq .side a { display: inline-block; padding: var(--s2) 0; color: var(--text-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.faq details p { margin: 0 0 var(--s5); color: var(--text-2); max-width: 62ch; }
@media (hover: hover) { .faq summary:hover { color: var(--rose); } }

/* ---------- Contato ---------- */
.contact { padding: clamp(80px, 11vw, 152px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 700px; height: 700px; left: -240px; bottom: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(138,51,96,.4), transparent 75%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact h2 { color: var(--muted); margin: 0 0 var(--s5); font-weight: 500; }
.contact .mail { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 7vw, 6rem); line-height: 1; letter-spacing: -.045em; text-decoration: none; overflow-wrap: anywhere; font-variation-settings: "wdth" 90; transition: color .2s; }
.contact .mail .at { color: var(--rose); }
@media (hover: hover) { .contact .mail:hover { color: var(--rose); } }
.contact .row { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; margin-top: var(--s6); }
.contact .row p { margin: 0; color: var(--text-2); max-width: 46ch; }
.copy-btn { font: 600 .9375rem/1 var(--sans); background: none; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; min-height: 44px; padding: 0 var(--s5); cursor: pointer; transition: border-color .2s; }
@media (hover: hover) { .copy-btn:hover { border-color: var(--text-2); } }

/* ---------- Rodapé ---------- */
.colophon { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s6); font-size: .875rem; color: var(--text-2); }
.colophon .grid { display: grid; gap: var(--s6); }
@media (min-width: 860px) { .colophon .grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.colophon h2 { margin: 0 0 var(--s3); color: var(--muted); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.colophon ul a { text-decoration: none; display: inline-block; padding: var(--s1) 0; }
@media (hover: hover) { .colophon ul a:hover { color: var(--text); text-decoration: underline; } }
.colophon .tag { margin: var(--s4) 0 0; color: var(--muted); max-width: 30ch; }
.colophon .legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--muted); }
.colophon .legal span + span::before { content: "·"; margin: 0 var(--s2); }

/* ---------- Entrada na rolagem ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .rise.in { opacity: 1; transform: none; }
}
