/* DoF Studio — support & privacy site
   Aesthetic: an optical instrument. Engraved lens-barrel typography on a dark
   ground, amber index marks, and the app's own focus scale as the signature. */

:root {
  --ink:        #0b0b0d;
  --ink-raised: #141416;
  --ink-edge:   #232327;
  --paper:      #f2efe9;
  --paper-dim:  #a9a49b;
  --paper-faint:#6f6b64;
  --amber:      #ffb020;
  --amber-deep: #c77800;
  --sharp:      #35dd60;
  --subject:    #4aa3ff;
  --rule:       #2a2a2f;

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --measure: 68ch;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

/* Fine grain, so the dark ground has a surface rather than being flat ink. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 var(--pad); }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--paper); }
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
}
.mark { width: 34px; height: 34px; flex: none; }
.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: .01em;
  margin: 0;
  line-height: 1;
}
.masthead nav {
  margin-left: auto;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.masthead nav a { color: var(--paper-dim); text-decoration: none; }
.masthead nav a:hover,
.masthead nav a[aria-current="page"] { color: var(--amber); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 6vw, 4rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.4rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
}
h1 em { font-style: italic; color: var(--amber); }

.lede {
  font-size: clamp(1.075rem, 1rem + .45vw, 1.3rem);
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0;
}

/* ── The focus scale: the app's own readout, as the site's signature ──── */

.scale {
  margin: clamp(2.75rem, 7vw, 4.5rem) 0 0;
  max-width: 40rem;
}
.scale-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #24242a;
  overflow: visible;
}
.scale-zone {
  position: absolute;
  inset-block: 0;
  left: 22%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sharp), var(--sharp) 62%, rgba(53,221,96,.25));
  animation: zone 1.5s cubic-bezier(.22,.9,.28,1) .35s forwards;
}
@keyframes zone { to { width: 56%; } }

.scale-subject {
  position: absolute;
  top: 50%;
  left: 44%;
  width: 17px;
  height: 17px;
  margin: -8.5px 0 0 -8.5px;
  border-radius: 50%;
  background: var(--subject);
  box-shadow: 0 0 0 3px var(--ink);
  opacity: 0;
  animation: pop .5s cubic-bezier(.2,1.5,.4,1) 1.1s forwards;
}
@keyframes pop { from { transform: scale(.4); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.scale-legend {
  display: flex;
  justify-content: space-between;
  margin-top: .95rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.scale-legend b { display: block; font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: .92rem; }
.scale-legend span:nth-child(1) b { color: var(--sharp); }
.scale-legend span:nth-child(2) { text-align: center; }
.scale-legend span:nth-child(2) b { color: var(--subject); }
.scale-legend span:nth-child(3) { text-align: right; }
.scale-legend span:nth-child(3) b { color: var(--sharp); }

/* ── Sections, numbered like a spec sheet ─────────────────────────────── */

section { padding: clamp(2.75rem, 7vw, 4.75rem) 0; border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 2.25rem;
}
.section-head .num {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--amber-deep);
  letter-spacing: .1em;
  padding-top: .45rem;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}

.body { max-width: var(--measure); }
.body p { margin: 0 0 1.15rem; }
.body p:last-child { margin-bottom: 0; }
.body strong { font-weight: 600; color: var(--paper); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 3rem 1.35rem 0;
  position: relative;
  font-size: 1.075rem;
  font-weight: 450;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber); }
.faq summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: rotate(45deg);
  transition: transform .25s cubic-bezier(.3,.9,.3,1);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer {
  padding: 0 0 1.5rem;
  max-width: var(--measure);
  color: var(--paper-dim);
}
.faq .answer p { margin: 0 0 .9rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ── Contact panel ────────────────────────────────────────────────────── */

.panel {
  background: var(--ink-raised);
  border: 1px solid var(--ink-edge);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: var(--measure);
}
.mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-deep);
  padding-bottom: .2rem;
  margin: .35rem 0 1.1rem;
  transition: color .2s, border-color .2s;
}
.mail:hover { color: var(--paper); border-color: var(--paper); }
.panel .note { color: var(--paper-faint); font-size: .93rem; margin: 0; }

/* ── At-a-glance table (privacy) ──────────────────────────────────────── */

.glance {
  width: 100%;
  border-collapse: collapse;
  max-width: var(--measure);
  font-size: .96rem;
}
.glance th, .glance td {
  text-align: left;
  padding: .85rem 1rem .85rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.glance th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper-faint);
  width: 40%;
}
.glance td { color: var(--paper); }
.glance .no { color: var(--sharp); font-weight: 500; }

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--paper-faint);
}
footer a { color: var(--paper-dim); text-decoration: none; }
footer a:hover { color: var(--amber); }
footer .spacer { margin-left: auto; }

@media (max-width: 34rem) {
  .section-head { grid-template-columns: 1fr; gap: .4rem; }
  .section-head .num { padding-top: 0; }
  .glance th { width: auto; display: block; padding-bottom: .15rem; border: 0; }
  .glance td { display: block; padding-top: 0; }
}
