/* EchoLogia one-pager: scroll slides + bento tiles.
   Brand tokens from the EchoLogia brand kit. The brand fonts (EchoLogia Grid, EchoLogia Signal) are not
   supplied yet [VERIFY]; the fallback stacks below are used until the font files are added to /public/fonts.
   The Content-Security-Policy in _headers allows no inline styles or scripts: keep all CSS here. */
:root {
  --ground: #0A0A0E; --surface: #14141B; --raised: #1C1C25; --line: #2A2A35;
  --ink: #F2F1EC; --ink-muted: #A9A8B8;
  --signal: #FF5A36; --echo: #3EC9FF;
  --reordr: #2EE6FF; --akwardfreq: #A6FF00; --sfa: #FFA64D;
  --display: "EchoLogia Grid", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --label: "EchoLogia Signal", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gap: 14px; --r: 22px; --nav-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { background: var(--ground); color: var(--ink); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--echo); outline-offset: 3px; }

.display { font-family: var(--display); text-transform: uppercase; font-weight: 400; line-height: .95; letter-spacing: .01em; }
.label { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 400; }
.kicker { color: var(--echo); }
.kick-signal { color: var(--signal); }

/* progress + header */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10,10,14,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1240px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .word { font-family: var(--display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--ink-muted); padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }

/* section dots */
.dots { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; }
.dots a { width: 24px; height: 24px; display: grid; place-items: center; }
.dots a::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: background .2s, transform .2s; }
.dots a:hover::before { background: var(--ink-muted); }
.dots a[aria-current="true"]::before { background: var(--signal); transform: scale(1.4); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; background: transparent; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; }
.btn:hover { border-color: var(--ink-muted); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--ground); }
.btn-primary:hover { background: #ff7458; border-color: #ff7458; }
.btn-white { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 10px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* slides */
.slide { display: flex; align-items: center; padding: 7px 0; }
.bento { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tile.raised { background: var(--raised); }
.tile.signal { background: var(--signal); border-color: var(--signal); color: var(--ground); }
.slide-head { grid-column: span 12; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding: 30px 4px 6px; }
.slide-head h2 { font-size: clamp(36px, 5vw, 60px); }
.slide-head p { color: var(--ink-muted); max-width: 380px; font-size: 15px; }

/* slide 1 */
.c-hero { grid-column: span 8; grid-row: span 2; justify-content: center; padding: 48px; background: radial-gradient(circle at 85% 30%, rgba(255,90,54,.12), transparent 55%), var(--surface); }
.c-hero h1 { font-size: clamp(46px, 7.5vw, 104px); margin: 16px 0 20px; }
.c-hero .lede { font-size: 18px; color: var(--ink-muted); max-width: 500px; margin-bottom: 30px; }
.c-rings { grid-column: span 4; grid-row: span 2; align-items: center; justify-content: center; padding: 24px; }
.rings { width: 100%; max-width: 360px; height: auto; }
.c-pillar { grid-column: span 4; padding: 22px 26px; }
.c-pillar h2 { margin-bottom: 8px; }
.c-pillar p { color: var(--ink-muted); font-size: 14px; }

/* slide 2: products */
.product .tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--accent); }
.pill { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid currentColor; font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.product h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(36px, 4vw, 50px); line-height: .95; margin-bottom: 12px; color: var(--accent); font-weight: 400; }
.product h4 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.product p { color: var(--ink-muted); font-size: 15px; margin-bottom: 18px; }
.product .btns { margin-top: auto; }
.t-reordr { --accent: var(--reordr); } .t-akwardfreq { --accent: var(--akwardfreq); } .t-sfa { --accent: var(--sfa); }
.c-reordr { grid-column: span 7; } .c-akwardfreq { grid-column: span 5; } .c-sfa { grid-column: span 12; flex-direction: row; gap: 40px; align-items: center; }
.sfa-copy { flex: 1 1 50%; display: flex; flex-direction: column; min-width: 0; }
.shot { flex: 1; min-height: 120px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
a.shot { overflow: hidden; padding: 0; display: block; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot em { font-style: normal; font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: var(--ink-muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars i { display: block; width: 14px; border-radius: 4px; background: var(--accent); }
.b1 { height: 64px; } .b2 { height: 40px; opacity: .6; } .b3 { height: 22px; opacity: .4; } .b4 { height: 12px; opacity: .25; }
.b5 { height: 42px; } .b6 { height: 64px; } .b7 { height: 32px; } .b8 { height: 54px; } .b9 { height: 20px; }
.flow { flex: 1 1 50%; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-width: 0; }
.flow li { border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--ink-muted); background: var(--ground); counter-increment: ph; }
.flow { counter-reset: ph; }
.flow li::before { content: "0" counter(ph) " "; color: var(--sfa); }
.flow li.first { background: var(--sfa); border-color: var(--sfa); color: var(--ground); }
.flow li.first::before { color: var(--ground); }
.flow small { display: block; text-transform: none; letter-spacing: .02em; font-family: var(--body); font-size: 11px; opacity: .7; margin-top: 3px; }

/* slide 3 */
.c-collab { grid-column: span 7; }
.c-collab h2 { font-size: clamp(34px, 4.4vw, 58px); margin: 12px 0 14px; }
.c-collab .lead { color: var(--ink-muted); max-width: 520px; font-size: 15px; margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; }
.step { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.step h3 { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 400; margin-bottom: 6px; }
.step p { color: var(--ink-muted); font-size: 13px; }
.c-about { grid-column: span 5; justify-content: center; }
.c-about h2 { font-size: clamp(38px, 4.4vw, 58px); margin: 12px 0 18px; }
.c-about p { font-size: 16px; }

/* slide 4 */
.c-log { grid-column: span 4; padding: 0; transition: border-color .2s, transform .2s; }
.c-log:hover { border-color: var(--ink-muted); transform: translateY(-4px); }
.c-log .thumb { height: 140px; background: var(--raised); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: var(--ink-muted); }
.c-log .thumb.sfa { font-family: var(--display); font-size: 40px; color: var(--sfa); letter-spacing: .08em; }
.c-log .meta { padding: 20px 24px 24px; }
.c-log .date { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--ink-muted); margin-bottom: 8px; }
.c-log h3 { font-size: 16px; font-weight: 600; }
.c-preview { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 44px 48px; }
.c-preview h2 { font-size: clamp(40px, 5.5vw, 76px); color: var(--ground); }
.c-preview p { font-size: 15px; margin-top: 12px; max-width: 420px; }
.signup { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }
.signup label { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.signup .row { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 0; padding: 0 20px; font: inherit; font-size: 16px; background: #fff; color: var(--ground); }
.signup input:focus-visible { outline: 3px solid var(--ground); outline-offset: 2px; }
.signup .btn { height: 50px; background: var(--ground); border-color: var(--ground); color: var(--ink); }
.signup .note { font-size: 13px; min-height: 1.2em; }
.c-foot { grid-column: span 12; padding: 28px; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.c-foot .brand { margin-bottom: 12px; }
.c-foot p { color: var(--ink-muted); font-size: 13px; max-width: 520px; }
.c-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.c-foot nav a { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: var(--ink-muted); padding: 6px 0; }
.c-foot nav a:hover { color: var(--ink); }
.copyright { width: 100%; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--ink-muted); }

/* motion: tiles rise in when their slide scrolls into view. Without JS everything is simply visible. */
.ring { transform-origin: 200px 200px; animation: echo 3s ease-out 1 both; } /* plays once; the last ring (1.8 s delay) ends at 4.8 s */
.r1 { animation-delay: 0s; } .r2 { animation-delay: .6s; } .r3 { animation-delay: 1.2s; } .r4 { animation-delay: 1.8s; }
@keyframes echo { 0% { transform: scale(.9); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.06); opacity: .15; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links, .dots { display: none; }
  .slide { min-height: 0; }
  .c-hero, .c-rings, .c-pillar, .c-reordr, .c-akwardfreq, .c-sfa, .c-collab, .c-about, .c-log, .c-preview, .c-foot { grid-column: span 12; grid-row: auto; }
  .c-rings { min-height: 240px; }
  .c-sfa { flex-direction: column; align-items: stretch; gap: 22px; }
  .steps { grid-template-columns: 1fr; }
  .c-preview { padding: 32px 26px; }
  html { scroll-snap-type: none; }
}
@media (max-width: 560px) {
  .bento { gap: 10px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .tile { padding: 22px; border-radius: 18px; }
  .c-hero { padding: 28px 22px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .signup .row { flex-direction: column; }
  .signup .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .ring { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .c-log, .c-log:hover { transition: none; transform: none; }
}

/* KNTKTable teaser tile on the home page */
.t-kntk { --accent: var(--signal); }
.c-kntk { grid-column: span 12; }
.c-kntk .k-copy { max-width: 640px; }
