/* Plan7. An instrument for your week: black, hairlines, small technical type, LED readouts in sand. */
@import url("https://fonts.googleapis.com/css2?family=Doto:wght@500;800&display=swap");

:root {
  --bg: #070706;
  --panel: #0E0E0D;
  --panel-2: #161614;
  --device: #1C1C1A;
  --ink: #F2EEE6;
  --muted: #8F8A80;
  --faint: #55524C;
  --line: #2A2926;
  --hair: rgba(242, 238, 230, 0.55);
  --sand: #D8C3A0;
  --led: #E7CFA4;
  --wrap: 1240px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --dot: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--sand); color: #000; }

/* Cinematic background: fine film grain and a soft vignette over the whole page, under nothing clickable */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; }
body::before {
  opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grain 1.2s steps(3) infinite;
}
body::after {
  background: radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
@keyframes grain {
  0% { transform: translate(0, 0); } 33% { transform: translate(-30px, 20px); } 66% { transform: translate(25px, -35px); } 100% { transform: translate(0, 0); }
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sand); }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 760px; }

/* Small technical type */
.micro { font-size: 11px; line-height: 1.35; letter-spacing: 0.02em; color: var(--muted); }
.caps { text-transform: uppercase; letter-spacing: 0.08em; }
.led { font-family: var(--dot); font-weight: 800; color: var(--led); letter-spacing: 0.04em; text-shadow: 0 0 12px rgba(231, 207, 164, 0.35); }

/* ---------- Top bar: name, then sections with a line icon and tiny sub links ---------- */
.top { display: flex; align-items: flex-start; gap: 40px; padding: 26px 28px 0; max-width: var(--wrap); margin: 0 auto; }
.top .name { font-size: 19px; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); min-width: 120px; }
.top .name b { font-weight: 400; color: var(--sand); }
.top nav { display: flex; flex-wrap: wrap; gap: 30px 40px; flex: 1; }
.navitem { display: grid; grid-template-columns: 30px auto; column-gap: 10px; align-items: start; }
.navitem svg { width: 28px; height: 28px; grid-row: span 2; color: var(--ink); }
.navitem .label { font-size: 19px; line-height: 1; color: var(--ink); }
.navitem .sub { font-size: 10.5px; line-height: 1.35; color: var(--muted); margin-top: 6px; display: flex; flex-direction: column; }
.navitem .sub a { color: var(--muted); }
.navitem .sub a:hover, .navitem:hover .label { color: var(--sand); }
.top .jp { max-width: 120px; margin-left: auto; font-size: 9px; line-height: 1.35; color: var(--faint); }
.top nav.simple a { font-size: 15px; color: var(--muted); }
.top nav.simple a:hover { color: var(--sand); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 0; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 340px; width: min(1200px, 120vw); height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(216,195,160,0.10), rgba(216,195,160,0.03) 45%, rgba(0,0,0,0) 70%);
  filter: blur(10px);
}
.plate { width: min(420px, 100%); margin: 0 auto; }
.plate .row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--hair); padding: 2px 0 1px; }
.plate .big { font-size: clamp(26px, 4vw, 34px); line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }
.plate .big b { font-weight: 700; }
.plate .gap { height: 26px; }
.plate .small { font-size: 10px; line-height: 1.25; text-transform: uppercase; color: var(--ink); text-align: right; }

/* The device: Plan7 drawn as an instrument panel */
.device {
  position: relative; margin: 70px auto 0; width: min(980px, 100%);
  background: linear-gradient(180deg, #232321, #161615);
  border-radius: 34px; padding: 26px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -2px 0 rgba(0,0,0,0.6);
}
.device .screws { position: absolute; inset: 14px; pointer-events: none; }
.device .screws i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #2E2E2B; box-shadow: inset 0 1px 1px rgba(0,0,0,.8); }
.device .screws i:nth-child(1) { left: 0; top: 0; } .device .screws i:nth-child(2) { right: 0; top: 0; }
.device .screws i:nth-child(3) { left: 0; bottom: 0; } .device .screws i:nth-child(4) { right: 0; bottom: 0; }
.panel-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.screen {
  background: #0A0A09; border-radius: 16px; padding: 20px 22px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.9), inset 0 0 0 1px #000;
  min-height: 250px; display: flex; flex-direction: column;
}
.screen .head { display: flex; justify-content: space-between; }
.screen .head .led { font-size: 22px; }
.bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; padding-top: 22px; }
.bars div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 8px; }
.bars span { display: block; height: var(--h); border-radius: 3px;
  background: repeating-linear-gradient(0deg, rgba(231,207,164,0.22) 0 4px, transparent 4px 6px); }
.bars .on span { background: repeating-linear-gradient(0deg, var(--led) 0 4px, transparent 4px 6px); box-shadow: 0 0 14px rgba(231,207,164,0.35); }
.bars small { text-align: center; font-family: var(--dot); font-weight: 800; font-size: 13px; color: var(--muted); }
.bars .on small { color: var(--led); }
.side { display: grid; gap: 18px; grid-template-rows: auto 1fr; }
.readout { background: #0A0A09; border-radius: 16px; padding: 16px 20px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.9); }
.readout .led.xl { font-size: clamp(44px, 7vw, 76px); line-height: 0.95; display: block; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.key {
  aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg, #3A3A37, #2A2A27);
  box-shadow: 0 3px 0 #111, inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; flex-direction: column; justify-content: space-between; padding: 8px 9px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: #C9C3B7;
}
.key svg { width: 18px; height: 18px; color: #E9E3D8; }
.key.lit { background: linear-gradient(180deg, #E2CDA8, #C9B188); color: #1A1814; }
.key.lit svg { color: #1A1814; }
.device .label-row { display: flex; justify-content: space-between; margin-top: 16px; padding: 0 4px; }

/* Black status strip */
.strip { margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.strip .model { font-size: 15px; letter-spacing: 0.02em; }
.strip .led { font-size: 16px; }

/* Photos: shown like product shots, full colour, with a small caption */
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.photo { position: relative; margin: 0; overflow: hidden; background: var(--panel); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.twoup .photo { aspect-ratio: 4 / 5; }
.photo figcaption { position: absolute; left: 16px; bottom: 14px; color: rgba(242,238,230,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.bleed { border-bottom: 1px solid var(--line); }
.photo.wide { aspect-ratio: 2 / 1; }
/* A word over a photo, in the dot font of the numbers, lit letter by letter */
.dotword {
  position: absolute; left: clamp(16px, 3vw, 40px); top: clamp(16px, 3vw, 40px);
  font-family: var(--dot); font-weight: 800; color: var(--led); line-height: 1;
  font-size: clamp(54px, 9vw, 132px); letter-spacing: 0.02em; white-space: nowrap;
  text-shadow: 0 0 18px rgba(231, 207, 164, 0.45), 0 2px 18px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.dotword.wide { font-size: clamp(64px, 12vw, 200px); }
/* On a light photo: lower, over the darker part, with a dark halo so the letters stay readable */
.dotword.low { top: 38%; text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.7), 0 0 18px rgba(231, 207, 164, 0.35); }
.dotword span { display: inline-block; opacity: 0; }
.dotword.on span { animation: dot-on 0.7s steps(1, end) forwards; animation-delay: calc(var(--i) * 0.16s + 0.15s); }
@keyframes dot-on {
  0% { opacity: 0; }
  15% { opacity: 1; }
  30% { opacity: 0.15; }
  45% { opacity: 1; }
  60% { opacity: 0.5; }
  75%, 100% { opacity: 1; }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(80px, 11vw, 140px) 0; border-bottom: 1px solid var(--line); }
.kicker { display: flex; gap: 14px; align-items: baseline; margin: 0 0 26px; }
.kicker .n { font-family: var(--dot); font-weight: 800; color: var(--led); font-size: 15px; }
.kicker .t { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
h2.title { font-size: clamp(34px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; margin: 0; max-width: 16ch; text-wrap: balance; }
h2.title em { font-style: normal; color: var(--sand); }
.lede { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 48ch; margin: 26px 0 0; }

/* Problem vs answer */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.versus > div { background: var(--bg); padding: 30px; }
.versus .led.xl { font-size: clamp(64px, 10vw, 128px); line-height: 0.9; display: block; margin: 16px 0 10px; }
.versus .dim .led { color: var(--faint); text-shadow: none; }
.versus p { margin: 0; color: var(--muted); max-width: 34ch; }

/* Spec sheet */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); margin-top: 56px; }
.spec { border-bottom: 1px solid var(--line); padding: 22px 18px 22px 0; }
.spec .led { font-size: clamp(40px, 5vw, 58px); line-height: 1; display: block; }
.spec .micro { margin-top: 10px; max-width: 26ch; }

/* Modules: the four parts of the app, named like products */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.module { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; min-height: 320px; transition: border-color .3s, transform .3s; }
.module:hover { border-color: var(--sand); transform: translateY(-3px); }
.module .code { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--hair); padding-bottom: 6px; }
.module .code b { font-size: 22px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; }
.module .code span { font-family: var(--dot); font-weight: 800; color: var(--led); font-size: 14px; }
.module svg.ic { width: 56px; height: 56px; margin: 40px 0 auto; color: var(--ink); }
.module p { color: var(--muted); font-size: 15px; margin: 30px 0 0; }
.module .micro { margin-top: 14px; }

/* Coaches */
.coaches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 56px; }
.coach { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; }
.coach .n { font-family: var(--dot); font-weight: 800; color: var(--led); font-size: 13px; }
.coach svg { width: 30px; height: 30px; color: var(--ink); }
.coach span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer { margin-top: 28px; display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--hair); }
.answer > div { padding: 20px 20px 0 0; }
.answer .q { color: var(--muted); }
.answer .a { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; max-width: 40ch; }

/* Profile table */
.profile { margin-top: 56px; border-top: 1px solid var(--hair); }
.profile .r { display: grid; grid-template-columns: 220px 1fr; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.profile .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding-top: 5px; }
.profile .v { font-size: clamp(18px, 2vw, 22px); }

/* Contact */
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; max-width: 820px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send {
  grid-column: 1 / -1; justify-self: start; font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #1A1814; background: linear-gradient(180deg, #E2CDA8, #C9B188); border: 0; border-radius: 12px;
  padding: 16px 26px; cursor: pointer; box-shadow: 0 3px 0 #6E604A;
}
.send:active { transform: translateY(2px); box-shadow: 0 1px 0 #6E604A; }
.send:disabled { opacity: .5; cursor: default; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 0; min-height: 1.5em; }
.form-note.ok { color: var(--sand); }
.form-note a { color: var(--sand); }

/* Price */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.plan.lit { border-color: var(--sand); }
.plan .code { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--hair); padding-bottom: 6px; }
.plan .code b { font-size: 22px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; }
.plan .code span { font-family: var(--dot); font-weight: 800; color: var(--led); font-size: 14px; }
.plan .price { display: flex; align-items: baseline; gap: 14px; margin: 30px 0 10px; flex-wrap: wrap; }
.plan .price .led { font-size: clamp(40px, 5vw, 58px); line-height: 1; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plan li { color: var(--muted); font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan.lit li:first-child { color: var(--ink); }
.fine { color: var(--muted); font-size: 14px; margin: 18px 0 0; max-width: 60ch; }
.send.small { display: inline-block; padding: 10px 18px; font-size: 12px; text-decoration: none; }

/* Footer */
footer.foot { padding: 34px 0 60px; color: var(--muted); font-size: 12px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--sand); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Text pages: privacy, terms, support */
.mark { font-weight: 700; letter-spacing: -0.06em; color: var(--ink); line-height: 1; }
.mark span { color: var(--sand); }
.mark.small { font-size: 22px; }
.doc { padding: 90px 0 40px; }
.doc h1 { font-size: clamp(42px, 8vw, 72px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 500; margin: 0 0 10px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 44px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 44px 0 10px; }
.doc p, .doc li { color: #D6D1C6; font-size: 17px; line-height: 1.6; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc a { color: var(--sand); }

@media (max-width: 900px) {
  .top .jp { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .top { gap: 18px; padding: 18px 18px 0; flex-wrap: wrap; }
  .top nav { gap: 18px 22px; }
  .navitem .sub { display: none; }
  .navitem .label { font-size: 16px; }
  .navitem svg { width: 22px; height: 22px; }
  .navitem { grid-template-columns: 24px auto; }
  .hero { padding-top: 60px; }
  .device { border-radius: 24px; padding: 14px; margin-top: 48px; }
  .screen { min-height: 200px; padding: 16px; }
  .versus { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .module { min-height: 0; }
  .module svg.ic { margin: 26px 0 0; }
  .coaches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .coach { aspect-ratio: 1; padding: 10px; }
  .coach span { font-size: 9.5px; }
  .answer, .profile .r { grid-template-columns: 1fr; }
  .answer > div { padding-right: 0; }
  form.contact { grid-template-columns: 1fr; }
  .twoup { grid-template-columns: 1fr; }
  .twoup .photo { aspect-ratio: 4 / 5; }
  .photo.wide { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dotword span { opacity: 1; animation: none !important; }
}
