/* Edesilo — tokens
   lens #0B1026 · ice #EEF2F7 · paper #FFFFFF · voice #2FD08A · tally #FF3B30 · ring #FFC857 · slate #5B6479 */
:root {
  --lens: #0B1026;
  --lens-2: #18204A;
  --ice: #EEF2F7;
  --paper: #FFFFFF;
  --voice: #2FD08A;
  --tally: #FF3B30;
  --ring: #FFC857;
  --slate: #5B6479;
  --line: #D9E0EA;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 22px;
  --r-big: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--lens);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin: 0 0 .45em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.3rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.55rem); }
h3 { font-weight: 600; font-size: 1.14rem; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.muted { color: var(--slate); }

.osd {
  font-family: var(--mono); font-weight: 500; font-size: .74rem;
  letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--slate); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--voice); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--body); text-decoration: none;
  padding: 17px 26px; border-radius: 14px; border: 0; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ring { background: var(--ring); color: var(--lens); }
.btn-ring:hover { background: #FFD677; box-shadow: 0 14px 34px -14px rgba(255, 200, 87, .75); }
.btn-ink { background: var(--lens); color: #fff; }
.btn-ink:hover { background: var(--lens-2); box-shadow: 0 14px 34px -16px rgba(11, 16, 38, .6); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .26); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-outline { color: var(--lens); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--lens); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(238, 242, 247, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.04em;
}
.menu { display: flex; align-items: center; gap: 32px; }
.menu a:not(.btn) { text-decoration: none; color: var(--slate); font-weight: 500; transition: color .2s; }
.menu a:not(.btn):hover, .menu a[aria-current="page"] { color: var(--lens); }
.menu .btn { padding: 12px 18px; font-size: .95rem; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; }

@media (max-width: 860px) {
  .burger { display: block; position: relative; width: 44px; height: 44px; cursor: pointer; border-radius: 12px; }
  .burger span, .burger span::before, .burger span::after {
    content: ""; position: absolute; width: 22px; height: 2px; border-radius: 2px; background: var(--lens);
  }
  .burger span { left: 11px; top: 21px; }
  .burger span::before { left: 0; top: -7px; }
  .burger span::after { left: 0; top: 7px; }
  .nav-toggle:focus-visible + .burger { outline: 3px solid var(--ring); }
  .menu {
    display: none; position: absolute; top: 76px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 14px;
    background: var(--paper); border-radius: var(--r); box-shadow: 0 24px 50px -24px rgba(11, 16, 38, .35);
  }
  .menu a:not(.btn) { padding: 10px 8px; }
  .nav-toggle:checked ~ .menu { display: flex; }
}

/* ---------- sections ---------- */
.section { padding-block: 96px; }
.section-tight { padding-top: 0; }
.head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 44px; }
.head p { color: var(--slate); margin: 0; max-width: 30em; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }

/* ---------- hero: viewfinder ---------- */
.hero { padding: 8px 0 0; }
.screen {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; border-radius: var(--r-big);
  padding: 22px clamp(20px, 4vw, 54px) clamp(34px, 5vw, 56px);
  background: radial-gradient(110% 90% at 88% 0%, #26306A 0%, var(--lens) 58%);
}
/* rule-of-thirds guides */
.screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255,255,255,.05) 0 calc(33.333% + .5px), transparent 0 calc(66.666% - .5px), rgba(255,255,255,.05) 0 calc(66.666% + .5px), transparent 0),
    linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255,255,255,.05) 0 calc(33.333% + .5px), transparent 0 calc(66.666% - .5px), rgba(255,255,255,.05) 0 calc(66.666% + .5px), transparent 0);
}
.corner { position: absolute; width: 30px; height: 30px; border: 2px solid rgba(255, 255, 255, .55); pointer-events: none; }
.corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }

.osd-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #AEB6D8; padding: 4px 22px 0; }
.rec { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.tally {
  width: 9px; height: 9px; border-radius: 50%; background: var(--tally);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, .2);
  animation: pulse 1.8s ease-in-out infinite;
}
.tc { color: #AEB6D8; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .osd-bar .specs { display: none; } }

.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(28px, 5vw, 52px); }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } .room { max-width: 560px; } }
.hero-grid > *, .cards > *, .steps > *, .plans > *, .values > *, .band > *, .cta > *, .head > * { min-width: 0; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; hyphens: manual; overflow-wrap: normal; }
@media (max-width: 480px) {
  .spec { white-space: normal; text-align: right; }
  .sample { flex-wrap: wrap; row-gap: 2px; }
  .sample small { flex-basis: 100%; padding-left: 30px; }
  .screen { padding-top: 16px; }
  .corner { width: 22px; height: 22px; }
  .corner.tl, .corner.tr { top: 10px; } .corner.bl, .corner.br { bottom: 10px; }
  .corner.tl, .corner.bl { left: 10px; } .corner.tr, .corner.br { right: 10px; }
}
.hero .eyebrow { color: #AEB6D8; }
.hero h1 { color: #fff; }
.linkword { color: var(--ring); text-decoration: underline; text-decoration-thickness: .075em; text-underline-offset: .13em; }
.hero .lead { color: #C6CCE6; font-size: 1.12rem; max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.sample {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-family: var(--mono); font-size: .88rem; color: #E6E9F8;
}
.sample svg { flex: 0 0 18px; color: var(--ring); }
.sample small { color: #8E97BF; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

/* meeting room */
.room { position: relative; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center;
  animation: rise .8s cubic-bezier(.2, .75, .2, 1) both;
}
.tile:nth-child(1) { background: linear-gradient(145deg, #313B7E, #54449A); animation-delay: .05s; }
.tile:nth-child(2) { background: linear-gradient(145deg, #1B4D4C, #2F7A67); animation-delay: .15s; }
.tile:nth-child(3) { background: linear-gradient(145deg, #5B2C4D, #92506A); animation-delay: .25s; }
.tile:nth-child(4) { background: linear-gradient(145deg, #4B3C22, #7E663A); animation-delay: .35s; }
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--voice), inset 0 0 34px rgba(47, 208, 138, .25);
  opacity: 0;
}
/* negative delays: every loop is already running at page load, speakers take turns 0–3s, 3–6s, 6–9s */
.tile.s1::after { animation: speak 9s infinite; }
.tile.s2::after { animation: speak 9s -6s infinite; }
.tile.s3::after { animation: speak 9s -3s infinite; }

.face {
  width: clamp(52px, 7vw, 70px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-weight: 600; font-size: 1.15rem; letter-spacing: .02em;
}
.tag {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 10px; font-size: .8rem;
  background: rgba(6, 9, 24, .55);
}
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; opacity: .25; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--voice); transform-origin: bottom; animation: wave .55s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: .15s; }
.bars i:nth-child(3) { animation-delay: .3s; }
.s1 .bars { animation: gate 9s infinite; }
.s2 .bars { animation: gate 9s -6s infinite; }
.s3 .bars { animation: gate 9s -3s infinite; }
.tag svg { color: var(--tally); }

.captions {
  position: relative; margin-top: 12px; min-height: 3.4em;
  border-radius: 14px; background: rgba(0, 0, 0, .32);
  font-size: .95rem; color: #F2F4FF;
}
.captions p { position: absolute; inset: 0; margin: 0; padding: 12px 16px; opacity: 0; }
.captions b { font-family: var(--mono); font-weight: 500; font-size: .78rem; color: var(--voice); margin-right: 8px; letter-spacing: .04em; }
.captions p:nth-child(1) { animation: caption 9s infinite; }
.captions p:nth-child(2) { animation: caption 9s -6s infinite; }
.captions p:nth-child(3) { animation: caption 9s -3s infinite; }

.controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.ctl { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: #E6E9F8; }
.ctl svg { width: 20px; height: 20px; }
.ctl.end { width: 62px; border-radius: 22px; background: var(--tally); color: #fff; }

.browsers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 26px 0 0; color: var(--slate); }
.browsers span:first-child { color: var(--lens); }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes speak { 0% { opacity: 0; } 3%, 29% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes gate { 0% { opacity: .25; } 3%, 29% { opacity: 1; } 32%, 100% { opacity: .25; } }
@keyframes caption { 0% { opacity: 0; transform: translateY(4px); } 4%, 28% { opacity: 1; transform: none; } 31%, 100% { opacity: 0; } }
@keyframes wave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border-radius: var(--r); padding: 26px;
  box-shadow: 0 1px 0 rgba(11, 16, 38, .04), 0 22px 44px -34px rgba(11, 16, 38, .3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(11, 16, 38, .04), 0 30px 54px -34px rgba(11, 16, 38, .4); }
.card p { color: var(--slate); margin: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--lens); color: var(--ring); }
.ico svg { width: 22px; height: 22px; }
.spec { color: var(--lens); background: var(--ice); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }

/* ---------- steps (real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 26px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: block; margin-bottom: 18px;
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--lens);
}
.step p { color: var(--slate); margin: 0; }

/* ---------- security band ---------- */
.band {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px 64px; align-items: start;
  background: var(--lens); color: #fff; border-radius: var(--r-big);
  padding: clamp(32px, 6vw, 72px);
}
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }
.band h2 { color: #fff; }
.band .muted { color: #AEB6D8; }
.readout { margin: 0; }
.readout div { display: grid; grid-template-columns: minmax(120px, 11em) 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.readout div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.readout dt { color: #8E97BF; padding-top: 3px; }
.readout dd { margin: 0; color: #F2F4FF; }
@media (max-width: 480px) { .readout div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- call to action ---------- */
.cta {
  display: grid; grid-template-columns: 1.5fr auto; gap: 24px 40px; align-items: center;
  background: var(--ring); border-radius: var(--r-big); padding: clamp(32px, 6vw, 64px);
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; max-width: 34em; color: #3A3320; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16em; }
.page-head .lead { color: var(--slate); font-size: 1.12rem; max-width: 36em; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { display: flex; flex-direction: column; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 2.3rem; letter-spacing: -.04em; line-height: 1.1; margin: 14px 0 6px; }
.plan .per { color: var(--slate); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--voice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.5' fill='none' stroke='%230B1026' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--lens); color: #fff; }
.plan.featured p, .plan.featured .per { color: #AEB6D8; }
.plan.featured .spec { background: rgba(255, 255, 255, .1); color: var(--ring); }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--slate); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); margin: 12px 0 0; max-width: 42em; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-top: 2.2em; }
.prose p, .prose li { color: #3B4358; }
.prose a { color: var(--lens); text-decoration-color: var(--ring); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 8px; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

.mail { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: .92rem; color: var(--lens); text-decoration: none; border-bottom: 2px solid var(--ring); padding-bottom: 2px; }
.mail:hover { border-bottom-color: var(--lens); }

/* ---------- footer ---------- */
.foot { padding: 64px 0 40px; color: var(--slate); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 12px; color: var(--lens); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--lens); }
.foot .copy { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .tile.s2::after { opacity: 1; }
  .s2 .bars { opacity: 1; }
  .captions p:nth-child(2) { opacity: 1; }
}
