/* Ario site — shared styles */

:root {
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --ink-3: #3A3A3A;
  --muted: #6B6B68;
  --line: #E8E6DF;
  --bg: #FAFAF7;
  --bg-2: #F2F0E8;
  --yellow: #E0B200;
  --yellow-deep: #C99B00;
  --yellow-soft: #F7E8A8;
  --blue: #1A8CFF;
  --radius: 22px;
  --radius-sm: 12px;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); }

/* ---- Layout ---- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Top header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.brand-name { color: var(--ink); }
.brand-tag { color: var(--muted); font-weight: 500; font-size: 14px; }

.dl-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-3);
}
.dl-row .label { color: var(--muted); margin-right: 4px; display: none; }
@media (min-width: 720px) { .dl-row .label { display: inline; } }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: white;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s, background 0.15s;
}
.btn-store:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-store svg { width: 14px; height: 14px; }

/* ---- Hero ---- */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  background: var(--yellow-soft);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 14ch;
  margin: 0 auto;
}
.h1 .yellow-line {
  display: block;
  background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%);
  background-size: 100% 100%;
  display: inline;
  padding: 0 4px;
  margin: 0 -4px;
}
.subhead {
  margin: 28px auto 0;
  max-width: 56ch;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--ink-3);
  line-height: 1.45;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-secondary:hover {
  background: var(--bg-2);
}
.btn-primary svg, .btn-secondary svg { width: 16px; height: 16px; }

/* ---- Hero stage / phone showcase ---- */
.hero-stage {
  margin-top: 64px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 0 16px;
}
.hero-stage .phone {
  flex: 0 0 auto;
}
.phone {
  position: relative;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #111;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 2px #2a2a2a,
    0 30px 60px -20px rgba(0,0,0,0.35),
    0 12px 30px -12px rgba(0,0,0,0.25);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.phone--featured {
  width: clamp(280px, 32vw, 400px);
  transform: translateY(-12px);
  z-index: 2;
}
.phone--side {
  display: none;
  opacity: 0.92;
}
@media (min-width: 900px) {
  .phone--side { display: block; }
  .phone--side.left { transform: translateY(28px) rotate(-3deg); }
  .phone--side.right { transform: translateY(28px) rotate(3deg); }
}

/* ---- Section base ---- */
section.block {
  padding: 96px 0;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
}
.section-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-3);
  margin-top: 20px;
  max-width: 56ch;
  line-height: 1.45;
}

/* ---- Use cases ---- */
.usecases {
  background: var(--ink);
  color: white;
  padding: 120px 0;
}
.usecases .section-label { color: var(--yellow); }
.usecases .section-lede { color: rgba(255,255,255,0.7); }
.usecases-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .usecases-grid { grid-template-columns: 1fr 1fr; }
}
.uc-card {
  background: #161616;
  border: 1px solid #262626;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.uc-card .uc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--yellow);
}
.uc-card h3 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 18ch;
}
.uc-card p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  line-height: 1.5;
  max-width: 38ch;
}
.uc-card .uc-visual {
  margin-top: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

/* room-illustration */
.room-illu {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f1f1f, #0e0e0e);
  border: 1px solid #2a2a2a;
  overflow: hidden;
}

/* ---- Features ---- */
.features {
  padding: 120px 0;
  background: var(--bg);
}
.features-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(260px, auto);
  }
  .feat--keyboard { grid-column: span 4; }
  .feat--gestures { grid-column: span 2; }
  .feat--voice    { grid-column: span 3; }
  .feat--discover { grid-column: span 3; }
  .feat--price    { grid-column: span 6; }
}
.feat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.feat-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-deep);
}
.feat h3 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 22ch;
}
.feat p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 44ch;
}
.feat .feat-visual {
  margin-top: 8px;
  flex: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* keyboard visual */
.kb-visual {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 360px;
}
.kb-key {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), inset 0 -2px 0 rgba(0,0,0,0.03);
  transition: all 0.15s;
}
.kb-key:hover { background: var(--yellow-soft); border-color: var(--yellow); }

/* voice visual */
.voice-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 80px;
}
.voice-bar i {
  display: block;
  width: 4px;
  background: var(--ink);
  border-radius: 4px;
  animation: vbar 1.4s ease-in-out infinite;
}
@keyframes vbar {
  0%, 100% { height: 8px; }
  50% { height: 60px; }
}
.voice-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.voice-engines .pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--ink-3);
}

/* gestures visual */
.gesture-visual {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gesture-trace {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gesture-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(224, 178, 0, 0.18);
}

/* discovery visual */
.disco-visual {
  position: relative;
  width: 140px;
  height: 140px;
}
.disco-visual::before, .disco-visual::after,
.disco-visual span {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1.5px solid var(--yellow);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  opacity: 0;
  animation: ripple 2.4s ease-out infinite;
}
.disco-visual::after { animation-delay: 0.8s; }
.disco-visual span { animation-delay: 1.6s; }
@keyframes ripple {
  0%   { width: 24px; height: 24px; opacity: 1; }
  100% { width: 140px; height: 140px; opacity: 0; }
}
.disco-mac {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.disco-mac::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}

/* price visual */
.feat--price {
  background: linear-gradient(135deg, var(--yellow) 0%, #FFD43A 100%);
  border-color: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 720px) {
  .feat--price { grid-template-columns: 1.2fr 1fr; }
}
.feat--price .feat-eyebrow { color: rgba(0,0,0,0.55); }
.feat--price h3 { font-size: clamp(28px, 3.6vw, 44px); max-width: 14ch; }
.feat--price p { color: rgba(0,0,0,0.62); font-size: 16px; }
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-ui);
}
.price-tag .strike {
  font-size: 22px;
  color: rgba(0,0,0,0.4);
  text-decoration: line-through;
}
.price-tag .num {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-tag .currency {
  font-size: 28px;
  font-weight: 600;
  margin-right: -8px;
}

/* ---- Screenshots gallery ---- */
.shots {
  padding: 120px 0;
  background: var(--bg-2);
  overflow: hidden;
}
.shots-track {
  margin-top: 64px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 32px 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-track .phone {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: center;
  transition: transform 0.3s;
}
.shots-track .phone:hover { transform: translateY(-6px); }

.shots-hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  background: var(--bg);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--yellow-deep); }
.footer-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ---- FAQ specific ---- */
.faq-page {
  padding: 80px 0 120px;
}
.faq-list {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
  text-align: left;
  width: 100%;
  font-family: inherit;
  padding: 0;
}
.faq-q .plus {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.25s, background 0.15s, color 0.15s;
  margin-top: 4px;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--yellow);
  color: var(--ink);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1.55;
  max-width: 60ch;
}
.faq-item.open .faq-a {
  max-height: 400px;
  margin-top: 16px;
}

/* ---- Panorama frame (FAQ header) ---- */
.pano {
  margin-top: 64px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #111;
}
.pano-svg { width: 100%; height: 100%; display: block; }
.pano-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pano-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Legal pages ---- */
.legal-page {
  padding: 80px 0 120px;
}
.legal-page h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.04em;
}
.legal-body {
  margin-top: 56px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.legal-body h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--ink);
}
.legal-body p { margin-bottom: 16px; }
.legal-body ul { margin: 16px 0 16px 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { font-weight: 600; color: var(--ink); }

/* ---- Page-link nav (FAQ/legal back) ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--yellow-deep); }

/* responsive nudges */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .wrap-narrow { padding: 0 20px; }
  section.block, .features, .usecases, .shots { padding: 72px 0; }
  .hero { padding: 56px 0 24px; }
  .hero-stage { margin-top: 48px; }
  .uc-card { padding: 28px; min-height: 320px; }
  .feat { padding: 24px; }
  .dl-row .label { display: none; }
}

/* ========== DARK MODE ========== */
html.dark-mode {
  --ink: #F5F2EA;
  --ink-2: #E8E4D8;
  --ink-3: #BFBBB0;
  --muted: #8A867D;
  --line: #2A2823;
  --bg: #0E0D0B;
  --bg-2: #1A1814;
  --yellow-soft: #3D3010;
}
html.dark-mode body { background: var(--bg); color: var(--ink); }
html.dark-mode .site-header { background: rgba(14,13,11,0.78); }
html.dark-mode .btn-primary { background: var(--yellow); color: #0A0A0A; }
html.dark-mode .btn-primary:hover { background: #FFCB2E; }
html.dark-mode .btn-secondary { background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
html.dark-mode .btn-secondary:hover { background: #232017; }
html.dark-mode .btn-store { background: var(--ink); color: var(--bg); }
html.dark-mode .btn-store:hover { background: #fff; }
html.dark-mode .feat { background: var(--bg-2); border-color: var(--line); }
html.dark-mode .features { background: var(--bg); }
html.dark-mode .kb-key { background: var(--bg); border-color: var(--line); color: var(--ink-2); }
html.dark-mode .voice-engines .pill,
html.dark-mode .pill { background: var(--bg-2); color: var(--ink-3); }
html.dark-mode .feat--price { color: #0A0A0A; }
html.dark-mode .feat--price .feat-eyebrow,
html.dark-mode .feat--price h3,
html.dark-mode .feat--price p { color: #0A0A0A; }
html.dark-mode .shots { background: var(--bg-2); }
html.dark-mode .usecases { background: #060504; }
html.dark-mode .uc-card { background: #131210; border-color: #1f1d18; }
html.dark-mode .site-footer { background: var(--bg); border-color: var(--line); }
html.dark-mode .swatch { background: var(--bg-2); border-color: var(--line); }
html.dark-mode .swatch .meta { border-top-color: var(--line); }
html.dark-mode .pair-card,
html.dark-mode .princ-card,
html.dark-mode .logo-cell:not(.dark):not(.yellow) { background: var(--bg-2); border-color: var(--line); }
html.dark-mode .pair-card .weights span { background: var(--bg); color: var(--ink-3); }
html.dark-mode .preview { background:
  linear-gradient(45deg, transparent 49.5%, rgba(255,255,255,0.04) 49.5%, rgba(255,255,255,0.04) 50.5%, transparent 50.5%) 0 0 / 8px 8px,
  var(--bg-2);
  border-color: var(--line); }
html.dark-mode .preview.preview-dark { background: #060504; }
html.dark-mode .radii-cell { background: var(--bg-2); }
html.dark-mode .radii-cell .lab { color: var(--ink-3); }
html.dark-mode .shadow-cell { background: var(--bg-2); }
html.dark-mode .shadow-cell .shadow-card { background: var(--ink); }
html.dark-mode .icon-cell { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
html.dark-mode .toc a { background: var(--bg-2); color: var(--ink-3); }
html.dark-mode .toc a:hover { background: var(--yellow); color: #0A0A0A; }
html.dark-mode .eyebrow { background: rgba(224, 178, 0, 0.18); color: var(--yellow); }
html.dark-mode .faq-q .plus { background: var(--bg-2); color: var(--ink-3); }
html.dark-mode .ds-section,
html.dark-mode .ds-hero { border-color: var(--line); }
html.dark-mode .meta-cell,
html.dark-mode .type-row,
html.dark-mode .scale-row,
html.dark-mode .faq-item { border-color: var(--line); }
html.dark-mode .p3-callout { background: var(--bg-2); border: 1px solid var(--line); }
html.dark-mode .p3-code { background: #0A0908; border-color: var(--line); }
html.dark-mode .voice-bar i { background: var(--ink); }
html.dark-mode .disco-mac { background: var(--ink); }
html.dark-mode .disco-mac::after { background: var(--yellow); }
html.dark-mode img.brand-icon { box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
