/* Amari Software: shared styles. Dark and cinematic, calm below the hero, magenta used sparingly.
   Recurring shape: the 45-degree cut from the logo. */
:root {
  --ink: #0b0a10;
  --ink-2: #14121c;
  --ink-3: #1d1a28;
  --line: rgba(255, 255, 255, 0.13);
  --fg: #f4f2f6;
  --muted: #b6b2c1;
  --magenta: #b12081;
  --hot: #ec62b6;
  --ok: #78c896;

  --font-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --hh: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; border-radius: 4px; }
.wrap {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.8rem, 8vw, 7rem); line-height: 0.96; letter-spacing: -0.04em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.14; letter-spacing: -0.022em; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); }
.link { color: var(--hot); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.link:hover { color: #fff; }
section { position: relative; }
.sec { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.sec.alt { background: var(--ink-2); }
.sec-head { max-width: 48rem; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .lede { margin-top: 18px; }
.stack { display: grid; gap: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 16px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: #c4288f; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--fg); background: rgba(11, 10, 16, 0.25); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 11px 18px; font-size: 0.92rem; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f4e1ee; }
.btn-line { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, 0.14); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent; transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-solid, .site-header.menu-open { background: rgba(11, 10, 16, 0.94); backdrop-filter: blur(14px); border-color: var(--line); }
.bar { display: flex; align-items: center; gap: 22px; min-height: var(--hh); }
.brand { display: block; flex: none; }
.brand img { display: block; height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; }
.nav a { text-decoration: none; color: #d6d2de; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.is-here { color: #fff; border-color: var(--magenta); }
.tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.06em; color: var(--muted);
  background: none; border: 0; padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--fg); cursor: pointer; padding: 0; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.mnav { border-top: 1px solid var(--line); }
.mnav .wrap { display: grid; padding-top: 8px; padding-bottom: 18px; }
.mnav a { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 1.15rem var(--font-display); }
.mnav a.is-here { color: var(--hot); }
.mnav .btn { margin-top: 16px; border-bottom: 0; font-family: var(--font-body); font-size: 1rem; }

/* hero (home) */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.stage { position: absolute; inset: 0; z-index: -2; }
.stage video, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.stage .poster { opacity: 1; }
.stage video.on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 10, 16, 0.82) 0%, rgba(11, 10, 16, 0.42) 55%, rgba(11, 10, 16, 0.12) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 10, 16, 0) 22%);
}
.hero-inner { padding-top: calc(var(--hh) + clamp(90px, 14vw, 190px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 10ch; }
.hero .lede { margin-top: 30px; color: #e0dce8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.rise { display: block; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { transform: translateY(0.4em); } to { transform: none; } }
.scenes { display: none; gap: 8px; margin-top: clamp(56px, 9vw, 100px); max-width: 360px; }
.scenes.show { display: flex; }
.scenes i { position: relative; flex: 1; height: 3px; background: rgba(255, 255, 255, 0.28); overflow: hidden; border-radius: 2px; }
.scenes i b { position: absolute; inset: 0; background: var(--hot); transform: scaleX(0); transform-origin: left; }
.scenes i.done b { transform: scaleX(1); }
.scenes i.cur b { animation: fillbar var(--dur, 9s) linear forwards; }
@keyframes fillbar { to { transform: scaleX(1); } }

/* page hero (subpages) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); padding-top: calc(var(--hh) + clamp(56px, 9vw, 108px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("poster2.jpg") center / cover; opacity: 0.9; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 10, 16, 0.9) 0%, rgba(11, 10, 16, 0.6) 60%, rgba(11, 10, 16, 0.35) 100%), linear-gradient(0deg, var(--ink) 0%, rgba(11, 10, 16, 0) 30%); }
.page-hero .logo-lg { display: block; height: clamp(72px, 9vw, 104px); width: auto; margin-left: -12px; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.8vw, 4.8rem); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; color: #e0dce8; }
.page-hero .actions { margin-top: 28px; }

.subnav { position: sticky; top: calc(var(--hh) + env(safe-area-inset-top, 0px)); z-index: 40; background: rgba(11, 10, 16, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 15px 0; border-bottom: 2px solid transparent; text-decoration: none; color: var(--muted); font-weight: 500; }
.subnav a:hover, .subnav a.is-here { color: #fff; border-color: var(--magenta); }

/* grids and cards */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split.center { align-items: center; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 2.6vw, 32px); min-width: 0; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.25s ease, transform 0.25s ease; }
.sec.alt .card { background: var(--ink); }
a.card { text-decoration: none; }
a.card:hover { border-color: rgba(236, 98, 182, 0.55); transform: translateY(-3px); }
.card h3 { font-size: 1.3rem; line-height: 1.2; }
.card p { color: var(--muted); }
.card .tag { font-size: 0.85rem; font-weight: 600; color: var(--hot); }
.card .more-link { margin-top: auto; padding-top: 8px; color: var(--hot); font-weight: 600; }
.shard { display: block; width: 30px; height: 30px; background: var(--magenta); clip-path: polygon(0 0, 100% 0, 0 100%); margin-bottom: 6px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.facts li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; background: var(--magenta); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.nots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nots li { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 12px; }
.nots li::before { content: "×"; color: var(--hot); font: 800 1.3rem/1 var(--font-display); }

.spec { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); margin: 0; border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-weight: 600; padding-right: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; }
.steps li { position: relative; padding: 26px 24px 8px 0; border-top: 2px solid var(--line); min-width: 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: -2px; width: 52px; height: 2px; background: var(--magenta); }
.steps .n { font: 600 0.9rem/1 var(--font-body); color: var(--muted); }
.steps h3 { margin-top: 12px; font-size: 1.4rem; }
.steps p { margin-top: 8px; color: var(--muted); }

.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.node { position: relative; border: 1px solid var(--line); background: var(--ink); padding: 20px 22px; min-width: 0; }
.node:not(:last-child) { border-right: 0; }
.node:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 27px; height: 27px; background: var(--magenta); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); z-index: 2; }
.node small { display: block; color: var(--hot); font-weight: 600; font-size: 0.85rem; }
.node b { display: block; margin-top: 6px; font: 800 1.15rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.node span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.node.first { border-radius: 14px 0 0 14px; } .node.last { border-radius: 0 14px 14px 0; }
.blocked { margin-top: 24px; border: 1.5px dashed rgba(255, 255, 255, 0.3); border-radius: 14px; padding: 18px 22px; display: flex; gap: 16px; align-items: baseline; }
.blocked::before { content: "×"; color: var(--hot); font: 800 1.6rem/1 var(--font-display); }
.blocked b { font-family: var(--font-display); }

.callout { border-left: 3px solid var(--magenta); padding: 6px 0 6px 22px; color: #e0dce8; max-width: 46rem; font-size: 1.1rem; }

/* example windows */
.mock { border: 1px solid var(--line); border-radius: 16px; background: var(--ink); overflow: hidden; min-width: 0; }
.sec:not(.alt) .mock { background: var(--ink-2); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 0.95rem; min-width: 0; }
.mrow > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mrow .l2 { margin-left: 16px; } .mrow.i2 { margin-left: 16px; } .mrow.i3 { margin-left: 32px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--ok); }
.dot.warn { background: var(--hot); box-shadow: 0 0 0 0 rgba(236, 98, 182, 0.6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(236, 98, 182, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 98, 182, 0); } }
.chip { flex: none; font: 600 0.75rem/1 var(--font-body); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.warn { color: #ffd9f0; background: rgba(177, 32, 129, 0.35); border-color: rgba(236, 98, 182, 0.55); }
.chip.ok { color: #cfe9d9; border-color: rgba(120, 200, 150, 0.4); }
.mock svg { display: block; width: 100%; height: auto; }
.note-ex { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.masked { letter-spacing: 0.2em; }
.todo { color: var(--hot); border-bottom: 1px dashed var(--hot); }

/* products on home */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(32px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.prod:last-of-type { border-bottom: 1px solid var(--line); }
.prod.flip .prod-visual { order: 2; }
.prod-visual { position: relative; min-height: clamp(220px, 28vw, 330px); border-radius: 22px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; padding: 28px; }
.sec.alt .prod-visual { background: var(--ink); }
.prod-visual::before { content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(177, 32, 129, 0.38), rgba(177, 32, 129, 0) 66%); }
.prod-visual img { position: relative; width: min(100%, 420px); height: auto; display: block; }
.prod-text { display: grid; gap: 16px; min-width: 0; }
.prod-text .desc { color: var(--muted); }
.more-note { margin-top: 28px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.more-note::before { content: ""; width: 18px; height: 18px; border: 1.5px dashed var(--hot); transform: rotate(45deg) scale(0.75); flex: none; }

/* plans, FAQ */
.price { font: 800 clamp(3.2rem, 7vw, 5.4rem)/1 var(--font-display); letter-spacing: -0.045em; }
.plan { border-color: rgba(236, 98, 182, 0.55); background: linear-gradient(180deg, rgba(177, 32, 129, 0.18), rgba(177, 32, 129, 0) 60%), var(--ink-2); }
.sec.alt .plan { background: linear-gradient(180deg, rgba(177, 32, 129, 0.18), rgba(177, 32, 129, 0) 60%), var(--ink); }
.tiers { display: flex; flex-wrap: wrap; gap: 10px; }
.tiers span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.15rem/1.3 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--hot); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 46rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-row span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: var(--ink-2); }

/* contact band */
.contact { background: var(--magenta); color: #fff; overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -8vw; bottom: -30%; width: min(56vw, 640px); aspect-ratio: 1; background: url("icon-light.svg") center / contain no-repeat; opacity: 0.12; pointer-events: none; }
.contact .wrap { position: relative; }
.contact h2 { max-width: 16ch; }
.contact .lede { color: rgba(255, 255, 255, 0.94); margin-top: 22px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.mail { font: 800 clamp(1.3rem, 3.4vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.02em; user-select: all; overflow-wrap: anywhere; min-width: 0; }
.copy-state { font-size: 0.95rem; min-height: 1.4em; margin-top: 14px; }

/* footer */
.site-footer { background: var(--ink); padding-top: 56px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot img.logo { height: 64px; width: auto; display: block; margin-left: -8px; }
.foot h4 { margin: 0 0 12px; font: 600 0.95rem/1.2 var(--font-body); color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--hot); }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

@media (max-width: 1180px) {
  .nav, .tools .btn { display: none; }
  .burger { display: block; }
  .tools { margin-left: auto; }
}
@media (min-width: 1181px) { .mnav { display: none !important; } }
@media (max-width: 1020px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .prod { grid-template-columns: minmax(0, 1fr); }
  .prod.flip .prod-visual { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .node, .node.first, .node.last { border: 1px solid var(--line); border-radius: 14px; }
  .node::after { display: none; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .nots { grid-template-columns: minmax(0, 1fr); }
  .steps, .chain { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
  .brand img { height: 38px; }
  .bar { gap: 12px; }
  .hero-actions .btn, .page-hero .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .dot.warn { animation: none; }
  .btn, .card { transition: none; }
  .stage video { transition: none; }
}
