/* PleatView's site. One dark room lit by a TV: content sits in a 1160px column, the TV is
   the hero, and the logo's three pleats are the only flourish (the hero screen unfolds). */

@font-face { font-family: "Sora"; src: url("fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a0e11;
  --panel: #11181c;
  --panel-raised: #172025;
  --line: rgba(206, 232, 244, 0.1);
  --text: #edf3f6;
  --muted: #8fa1aa;
  --cyan: #18bcf2;
  --deep: #0c7fab;
  --good: #3ddc97;
  --waiting: #f5b84b;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; background: var(--panel-raised); border: 1px solid var(--line); border-radius: 7px; padding: 0.1em 0.45em; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(10, 14, 17, 0.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; }
.logo svg { height: 26px; width: auto; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--cyan); color: #04212c; }
.button.primary:hover { background: #4ccbf6; }
.button.quiet { color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.button.quiet:hover { border-color: rgba(24, 188, 242, 0.55); }
.button.small { padding: 9px 15px; font-size: 14px; }
@media (max-width: 760px) { .site-nav a:not(.button) { display: none; } }

/* Hero */
.hero { position: relative; padding: 76px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 180px -20% auto; height: 760px; background: radial-gradient(closest-side, rgba(24, 188, 242, 0.28), rgba(12, 127, 171, 0.12) 55%, transparent); filter: blur(30px); pointer-events: none; }
.hero-copy { position: relative; max-width: 720px; display: grid; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); font-size: 14px; color: var(--muted); }
.eyebrow b { color: #04212c; background: var(--cyan); border-radius: 999px; padding: 2px 9px; font-weight: 600; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--cyan), #7fdcfa 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--cyan); vertical-align: 2px; }

/* The TV. Its screen unfolds from the logo's three pleats on load. */
.tv { position: relative; margin: 64px auto 0; width: min(1040px, 100%); }
.tv-bezel { padding: clamp(6px, 1.1vw, 12px); border-radius: clamp(14px, 2vw, 24px); background: linear-gradient(160deg, #26343b, #0d1215 40%, #182227); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 90px -30px rgba(24, 188, 242, 0.45), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(8px, 1.2vw, 14px); overflow: hidden; background: #050709; perspective: 1400px; }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.pleat { position: absolute; top: 0; bottom: 0; width: 33.4%; background-size: 300% 100%; display: none; }
.pleat:nth-child(1) { left: 0; background-position: 0 0; }
.pleat:nth-child(2) { left: 33.3%; background-position: 50% 0; }
.pleat:nth-child(3) { left: 66.6%; background-position: 100% 0; }
.tv-stand { display: grid; justify-items: center; }
.tv-stand::before { content: ""; width: 7%; height: clamp(14px, 2.4vw, 30px); background: linear-gradient(#1a252b, #0f1518); }
.tv-stand::after { content: ""; width: 34%; height: clamp(8px, 1.3vw, 14px); border-radius: 999px; background: linear-gradient(#22313a, #11181c); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.9); }
.tv figcaption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .unfold .pleat { display: block; animation: unfold 1.25s cubic-bezier(0.2, 0.75, 0.2, 1) 0.25s both; }
  .unfold .pleat:nth-child(1) { --fold: -32deg; }
  .unfold .pleat:nth-child(2) { --fold: 32deg; }
  .unfold .pleat:nth-child(3) { --fold: -32deg; }
  .unfold img { animation: settle 0.35s ease 1.4s both; }
}
@keyframes unfold {
  from { transform: rotateY(var(--fold)) scaleY(0.9); filter: brightness(0.55); }
  to { transform: none; filter: none; }
}
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { padding: 104px 0 0; }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 40px; }
.kicker { font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }

/* Platforms strip */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.platforms span strong { color: var(--text); font-weight: 600; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-raised), var(--panel)); transition: border-color 0.2s ease, transform 0.2s ease; }
.feature:hover { border-color: rgba(24, 188, 242, 0.4); transform: translateY(-2px); }
.feature.wide { grid-column: span 3; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature .shot { margin: 8px -6px -6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #050709; }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; }
.feature .icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(24, 188, 242, 0.12); color: var(--cyan); }
.feature .icon svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } .feature, .feature.wide { grid-column: span 1; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Install steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 15px/1 var(--mono); color: var(--cyan); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .actions { margin-top: auto; padding-top: 6px; }
.code-line { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: #070a0c; border: 1px solid var(--line); font: 500 16px/1.3 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.code-line small { color: var(--muted); font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.note { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px dashed rgba(24, 188, 242, 0.35); color: var(--muted); font-size: 15px; }
.note strong { color: var(--text); }
.setup-shot { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.setup-shot figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.setup-shot p { color: var(--muted); }
@media (max-width: 960px) { .steps, .setup-shot { grid-template-columns: 1fr; } }

/* Compatibility matrix */
.matrix { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 8px 4px 4px; overflow-x: auto; }
.table-card h3 { font-size: 17px; padding: 14px 18px 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-top: 0; }
td small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.state.pass { color: var(--good); }
.state.pass::before { background: var(--good); box-shadow: 0 0 10px var(--good); }
.state.testing { color: var(--waiting); }
.state.testing::before { background: var(--waiting); }
.state.planned { color: var(--muted); }
.matrix-foot { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 90ch; }
@media (max-width: 960px) { .matrix { grid-template-columns: 1fr; } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .feature { grid-column: auto; }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr; } }

/* Support */
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(24, 188, 242, 0.16), transparent 55%), var(--panel); }
.support h2 { font-size: clamp(26px, 3vw, 34px); }
.support p { color: var(--muted); max-width: 60ch; margin-top: 10px; }

/* Footer */
.site-footer { margin-top: 110px; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .made { color: var(--text); font-weight: 500; }
.site-footer .fine { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Text pages: privacy, terms, support */
.prose { max-width: 740px; padding: 56px 0 0; }
.prose h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 12px; }
.prose h2 { font-size: 24px; margin: 46px 0 12px; }
.prose h3 { font-size: 18px; margin: 30px 0 8px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.prose p, .prose li { color: #c9d5db; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .muted { color: var(--muted); }
.prose .box { margin: 22px 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.prose .box p, .prose .box { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .feature { transition: none; }
}

/* Ideas: each with its automation */
.feature details { margin-top: auto; padding-top: 6px; }
.feature summary { cursor: pointer; color: var(--cyan); font-size: 15px; font-weight: 600; }
.features.ideas { align-items: start; }
.feature pre code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.feature pre { margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #06090c; overflow-x: auto; font: 13px/1.5 "Geist Mono", ui-monospace, monospace; color: #cfe6f0; }

/* Platform logos: one sprite, drawn in the text colour */
.sprite { display: none; }
.platform-icon { width: 18px; height: 18px; flex: none; fill: currentColor; color: var(--text); }
.tag { font: 600 10.5px/1 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--waiting); border: 1px solid rgba(245, 184, 75, 0.45); border-radius: 999px; padding: 3px 7px; }
.device { display: flex; gap: 12px; align-items: flex-start; }
.device .platform-icon { margin-top: 2px; width: 20px; height: 20px; }
.with-logo { display: flex; align-items: center; gap: 10px; }
.state.beta { color: var(--waiting); }
.state.beta::before { background: var(--waiting); }
