/* Cores do Kivern (Design/KIVERN_DS.md): marfim e terracota no Claro, azul-noite no Escuro. */
:root {
  --bg: #FCF4EA;
  --surface: #F6EADC;
  --border: #EADBCB;
  --text: #1A1714;
  --secondary: #7A6E60;
  --accent: #BE4416;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141A;
    --surface: #18202A;
    --border: #232C37;
    --text: #F5F7FA;
    --secondary: #B6BCC2;
    --accent: #E0663A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }

.top, main, footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.41em;
  font-size: 15px;
}

nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--secondary); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

h1, h2 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

.hero { padding: 48px 0 40px; max-width: 680px; }
.hero h1 { font-size: clamp(48px, 9vw, 80px); margin: 0 0 4px; }
.tagline {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  margin: 0 0 20px;
}
.lead { font-size: 20px; color: var(--secondary); margin: 0 0 16px; }
.soon { color: var(--accent); font-weight: 500; margin: 0; }

.doc { max-width: 680px; padding: 24px 0 56px; }
.doc h1 { font-size: clamp(36px, 6vw, 48px); margin: 0 0 12px; }
.doc h2 { font-size: 28px; margin: 40px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 28px 0 4px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.meta { color: var(--secondary); font-size: 15px; }

code {
  font: 0.9em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--secondary);
  font-size: 14px;
}
footer p { margin: 0 0 4px; }

/* Página inicial: seções de largura total, vistas reais do app soltas sobre o fundo. */
main.wide { max-width: none; padding: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
main.wide section { padding-top: 112px; padding-bottom: 112px; }
main.wide h2 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 14px; }
.sub { font-size: 20px; color: var(--secondary); margin: 0 auto; max-width: 560px; }
main.wide img { display: block; max-width: 100%; height: auto; }
.center img { margin: 0 auto; }
.band.dark { background: #11141A; color: #F5F7FA; --secondary: #B6BCC2; --accent: #E0663A; }
.band.soft { background: var(--surface); }

.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  padding-top: 56px !important; padding-bottom: 96px !important;
}
.hero h1 { font-size: clamp(46px, 6.4vw, 76px); margin: 0 0 20px; letter-spacing: -0.01em; }
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.badge {
  display: inline-block; margin: 8px 0 0; padding: 10px 18px; border-radius: 999px;
  border: 1px solid currentColor; color: var(--accent); font-size: 15px; font-weight: 500;
}
.desk { position: relative; min-height: 440px; }
.doc-window {
  position: absolute; inset: 24px 0 24px 0; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(60, 40, 20, .25);
  padding: 46px 36px 0;
}
.doc-window span { position: absolute; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: #E6604F; }
.doc-window span:nth-child(1) { left: 18px; }
.doc-window span:nth-child(2) { left: 36px; background: #E7B74C; }
.doc-window span:nth-child(3) { left: 54px; background: #6DBA5E; }
.doc-window i { display: block; height: 12px; border-radius: 6px; background: var(--border); margin: 0 0 16px; }
.doc-window i:nth-of-type(1) { width: 42%; height: 20px; margin-bottom: 26px; }
.doc-window i:nth-of-type(2) { width: 88%; }
.doc-window i:nth-of-type(3) { width: 76%; }
.doc-window i:nth-of-type(4) { width: 82%; }
.doc-window b { display: block; height: 120px; border-radius: 10px; background: var(--border); opacity: .55; margin-top: 26px; width: 70%; }
.floating {
  position: absolute; right: -12px; bottom: -8px; width: min(340px, 74%);
  filter: drop-shadow(0 28px 40px rgba(60, 35, 15, .28));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .floating { animation: none; } }

.glow { margin-top: 64px; filter: drop-shadow(0 0 60px rgba(224, 102, 58, .28)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > .center img { filter: drop-shadow(0 22px 30px rgba(20, 15, 10, .25)); }

.sizes, .styles, .chips, .points { list-style: none; padding: 0; margin: 0; }
.sizes { display: flex; align-items: center; justify-content: center; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.sizes li, .styles li { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sizes span, .styles span { font-size: 15px; color: var(--secondary); }
.sizes img, .styles img { filter: drop-shadow(0 18px 26px rgba(60, 35, 15, .18)); }

.styles {
  display: flex; gap: 20px; margin: 64px -24px 0; padding: 8px 24px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; justify-content: safe center;
}
.styles li { flex: 1 1 0; min-width: 170px; scroll-snap-align: center; }
.styles img { width: 100%; height: auto; }

.looks { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.looks-pair { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.pane { padding: 48px 20px; display: grid; place-items: center; }
.pane.light { background: #F3ECE3; }
.pane.night { background: #11141A; }
.pane img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .22)); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chips li {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 15px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-0 { background: #C8532A; }
.dot-1 { background: #2F7FE0; }
.dot-2 { background: #6B6F76; }
.note { color: var(--secondary); font-size: 15px; margin: 16px 0 0; }

.keys { display: flex; justify-content: center; gap: 10px; margin: 40px 0 36px; }
kbd {
  font: 500 22px/1 -apple-system, BlinkMacSystemFont, sans-serif; min-width: 58px; padding: 16px 14px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 3px 0 var(--border); color: var(--text);
}
kbd.wide-key { min-width: 150px; font-size: 18px; }
.quick img { filter: drop-shadow(0 24px 34px rgba(60, 35, 15, .2)); }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; text-align: left; }
.points h3 { font-family: ui-serif, "New York", Georgia, serif; font-weight: 400; font-size: 24px; margin: 0 0 6px; }
.points p { margin: 0; color: var(--secondary); }
.points li { border-top: 1px solid var(--border); padding-top: 18px; }

.closing .wordmark { letter-spacing: 0.5em; font-size: clamp(28px, 5vw, 44px); margin: 0 0 28px; padding-left: 0.5em; }
.closing .sub { margin-top: 28px; font-size: 16px; }
footer.wide-footer { border-top: 0; padding-top: 28px; }

@media (max-width: 860px) {
  .hero, .split, .looks { grid-template-columns: 1fr; }
  .desk { min-height: 380px; }
  .looks-pair { order: 2; }
  .points { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  main.wide section { padding-top: 72px; padding-bottom: 72px; }
  .wrap { padding: 0 16px; }
  .styles { margin: 48px -16px 0; padding: 8px 16px 24px; justify-content: flex-start; }
  .sub { font-size: 18px; }
  .sizes { gap: 36px; flex-direction: column; }
  .pane { padding: 28px 10px; }
  .desk { min-height: 330px; }
  .doc-window { padding: 40px 20px 0; }
  kbd { font-size: 18px; min-width: 48px; padding: 12px; }
  kbd.wide-key { min-width: 110px; font-size: 16px; }
  body { font-size: 16px; }
  .top, main, footer { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 24px; }
  .lead { font-size: 18px; }
}
