/* Units: Ruler & Vault. The site is drawn like the app: a gray ruler with blue measuring lines. */
:root {
  --paper: #F5F5F3;
  --paper-2: #EBEBE7;
  --card: #FFFFFF;
  --ink: #1E1E1D;
  --ink-soft: #5B5B57;
  --tick: #3A3A38;
  --line: #D5D5CF;
  --accent: #0A7AFF;
  --accent-ink: #FFFFFF;
  --band: rgba(10, 122, 255, 0.10);
  --bezel: #1E1E1D;
  --dark: #1E1E1D;
  --dark-ink: #F2F2EF;
  --measure: 68ch;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131313;
    --paper-2: #1B1B1A;
    --card: #1E1E1D;
    --ink: #EDEDEA;
    --ink-soft: #A9A9A4;
    --tick: #BDBDB7;
    --line: #34342F;
    --accent: #3D95FF;
    --accent-ink: #0B0B0B;
    --band: rgba(61, 149, 255, 0.14);
    --bezel: #3A3A38;
    --dark: #0A0A0A;
    --dark-ink: #EDEDEA;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); margin: 0 0 0.35em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; letter-spacing: -0.01em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.blue { color: var(--accent); }

/* ---------- the ruler strip: millimetre ticks with centimetre numbers ---------- */
.ruler {
  position: relative;
  height: 30px;
  overflow: hidden;
  color: var(--tick);
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 60px) 0 0 / 100% 20px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 30px) 0 0 / 100% 13px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 6px) 0 0 / 100% 7px no-repeat;
  border-top: 1px solid currentColor;
}
.ruler span {
  position: absolute;
  top: 14px;
  font: 500 10px/1 var(--mono);
  color: var(--ink-soft);
  transform: translateX(4px);
}

/* ---------- header ---------- */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--ink); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.93rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }
.nav a.nav-cta { color: var(--accent); font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); }

.eyebrow { font: 600 0.74rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero p.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 40ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.readout { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font: 500 0.8rem/1.4 var(--mono); color: var(--ink-soft); }
.readout span::before { content: "| "; color: var(--accent); }

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 9px solid var(--bezel);
  border-radius: 42px;
  overflow: hidden;
  background: var(--bezel);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35);
}
.phone img { display: block; width: 100%; height: auto; }

/* the blue measuring bracket next to the hero phone */
.measured { position: relative; padding-left: 50px; max-width: 360px; margin: 0 auto; }
.measured::before { content: ""; position: absolute; left: 14px; top: 6%; bottom: 6%; width: 14px; border: 2px solid var(--accent); border-right: 0; }
.measured .label { position: absolute; left: 21px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--paper); padding: 4px 8px; }

/* hero: the ruler turns into the vault and back, on a loop */
.morph .reveal { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); animation: reveal 9s infinite cubic-bezier(.65,0,.35,1); }
.morph .scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); box-shadow: 0 0 14px 2px var(--accent); opacity: 0; animation: scan 9s infinite cubic-bezier(.65,0,.35,1); }
.morph .label { animation: label-a 9s infinite; }
.morph .label.alt { opacity: 0; animation-name: label-b; }
@keyframes reveal { 0%, 35% { clip-path: inset(0 0 100% 0); } 50%, 82% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 0 100% 0); } }
@keyframes scan { 0%, 34% { top: 0; opacity: 0; } 36% { top: 0; opacity: 1; } 50% { top: 100%; opacity: 1; } 52%, 81% { top: 100%; opacity: 0; } 83% { top: 100%; opacity: 1; } 97% { top: 0; opacity: 1; } 99%, 100% { top: 0; opacity: 0; } }
@keyframes label-a { 0%, 40% { opacity: 1; } 45%, 88% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes label-b { 0%, 40% { opacity: 0; } 45%, 88% { opacity: 1; } 93%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .morph .reveal, .morph .scan, .morph .label { animation: none; } .morph .label.alt { opacity: 0; } }

/* ---------- sections ---------- */
section.band { padding: 18px 0 64px; }
section.band.alt { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 8px; flex-wrap: wrap; }
.section-head .no { font: 600 0.8rem/1 var(--mono); color: var(--accent); }
.section-head h2 { margin: 0; }
.section-lede { color: var(--ink-soft); max-width: 62ch; margin: 0 0 28px; }

/* two faces */
.faces { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; }
.faces figure { margin: 0; text-align: center; }
.faces figcaption { margin: 16px auto 0; font-size: 0.95rem; color: var(--ink-soft); max-width: 30ch; }
.faces figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; }
.faces .divider {
  width: 30px; align-self: stretch; color: var(--tick);
  background:
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 60px) 0 0 / 22px 100% no-repeat,
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 30px) 0 0 / 14px 100% no-repeat,
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 6px) 0 0 / 8px 100% no-repeat;
  border-left: 1px solid currentColor;
}

/* only on your phone: the dark band */
section.solid { background: var(--dark); color: var(--dark-ink); padding: 0 0 72px; }
section.solid .ruler { color: #8C8C86; border-top-color: #8C8C86; }
section.solid .ruler span { color: #8C8C86; }
section.solid h2, section.solid h3 { color: var(--dark-ink); }
section.solid .section-lede, section.solid p { color: #B9B9B3; }
section.solid a { color: var(--dark-ink); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #45453F; margin-top: 8px; }
.pillar { padding: 26px 26px 6px 0; }
.pillar + .pillar { padding-left: 26px; border-left: 1px solid #45453F; }
.pillar .big { display: block; font: 700 clamp(1.7rem, 3.4vw, 2.5rem)/1.05 var(--sans); letter-spacing: -0.03em; color: var(--dark-ink); }
.pillar .big em { font-style: normal; color: var(--accent); }
.pillar p { margin: 12px 0 0; }

/* the way in: steps sitting on a ruler */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step .phone { max-width: 190px; border-width: 6px; border-radius: 28px; }
.step .at { display: block; margin: 18px 0 6px; font: 600 0.78rem/1 var(--mono); color: var(--accent); }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.steps-ruler { margin-top: 26px; }

/* spec sheet */
.specs { border-top: 1px solid var(--tick); margin: 0; }
.spec { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 600 0.88rem/1.5 var(--mono); }
.spec dd { margin: 0; color: var(--ink-soft); }

/* security readout */
.display { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 22px; font-family: var(--mono); font-size: 0.9rem; }
.display div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.display div:last-child { border-bottom: 0; }
.display span:first-child { color: var(--ink-soft); }
.display span:last-child { font-weight: 600; text-align: right; }

/* cards (feature, pricing and article pages) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 22px 22px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 6px);
  background-size: 100% 6px;
  background-repeat: no-repeat;
}
.card h3 { margin-top: 0; }
.card p { margin: 0.4em 0 0; color: var(--ink-soft); }
.tag { display: inline-block; font: 600 0.68rem/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--ink-soft); color: var(--ink-soft); margin-left: 6px; vertical-align: middle; }
.tag.pro { border-color: var(--accent); color: var(--accent); }

/* pricing */
.price .amount { font: 700 2.4rem/1.1 var(--mono); letter-spacing: -0.03em; margin: 6px 0 4px; }
.price.featured { border: 1.5px solid var(--accent); background-image: repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 6px); }
.price ul { padding-left: 1.1em; color: var(--ink-soft); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--ink-soft); }

/* article */
.article { padding-top: 48px; padding-bottom: 24px; }
.article .meta { color: var(--ink-soft); font: 500 0.82rem/1.4 var(--mono); }
.article p, .article li { max-width: var(--measure); }
.article img { max-width: 100%; }
.article code { background: var(--paper-2); padding: 1px 6px; border-radius: 4px; font: 0.88em var(--mono); }
.article blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.2em 0; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
thead th { border-bottom: 1.5px solid var(--tick); }
th { font-weight: 600; }

.cta { margin: 2.2em 0; padding: 22px; border: 1.5px solid var(--accent); border-radius: 10px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--band); }
.cta p { margin: 0; flex: 1 1 260px; }
.cta strong { font-size: 1.08rem; }

.guide-list { list-style: none; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: none; }
.guide-list a { font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.guide-list p { margin: 4px 0 0; color: var(--ink-soft); }

/* footer */
.site-foot { margin-top: 64px; padding: 0 0 48px; color: var(--ink-soft); font-size: 0.9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.site-foot a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero .wrap, .grid3, .grid2, .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 22px 0 4px; border-left: 0; border-top: 1px solid #45453F; }
  .pillar:first-child { border-top: 0; }
  .hero { padding: 36px 0 48px; }
  .faces { grid-template-columns: 1fr 1fr; gap: 18px; }
  .faces .divider { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr; gap: 4px; }
  .phone { max-width: 240px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .step .phone { max-width: 220px; }
}
