/* ---------------------------------------------------------------
   DMARC Peek — promo site
   Palette taken from the app icon: an eye with a blue iris on a
   violet-to-magenta-to-gold "D". The page is the iris at night;
   light surfaces are the white of the eye.
--------------------------------------------------------------- */

:root {
  --night:        #140f33;  /* page canvas: the darkest violet in the icon */
  --night-raised: #1f1849;  /* FAQ panel */
  --sclera:       #f6f1e5;  /* eye white: light panels, headings on night */
  --iris:         #7d9cf5;  /* iris blue: links, focus, the working accent */
  --iris-deep:    #4a49d8;  /* deep iris: text and buttons on light panels */
  --lid:          #d44fb6;  /* eyelid magenta: used once per surface at most */
  --gold:         #e9c97c;  /* the icon's warm edge: fact numbers only */
  --mist:         #c9c4de;  /* body text on night (11:1) */
  --mist-dim:     #9a94b8;  /* small meta text on night (6.4:1) */
  --ink:          #1b1640;  /* text on light surfaces */
  --ink-muted:    #4b4670;  /* secondary text on light surfaces (7.9:1 on sclera) */

  /* Verdict colours, matching the app. Used only inside the report card. */
  --bad:       #c4001a;
  --bad-bg:    #fde7e9;
  --bad-solid: #d70015;
  --warn:      #9a4600;
  --warn-bg:   #fff0db;
  --good-solid:#248a3d;

  --hairline: rgba(246, 241, 229, 0.12);
  --faint:    rgba(246, 241, 229, 0.07);

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1180px;
}

/* Reset ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, dt, figure, pre { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
code { font-family: var(--font-mono); font-size: 0.9em; }
[hidden] { display: none !important; }

/* Base ------------------------------------------------------------ */

::selection { background: var(--iris); color: var(--night); }

body {
  background: var(--night);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.text-wrap-balance { text-wrap: balance; }
.text-wrap-pretty { text-wrap: pretty; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sclera);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 3px;
}

section { padding-inline: max(24px, env(safe-area-inset-left)); }

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--sclera);
  max-width: 22ch;
  text-wrap: balance;
}
.section-heading--on-light { color: var(--ink); }

/* Hero -------------------------------------------------------------- */

.hero {
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: var(--space-xl);
}

.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--sclera);
  margin-bottom: var(--space-md);
}
.wordmark__icon {
  width: clamp(52px, 5vw, 68px);
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 22.5%;
}

/* The headline is the brand's voice: condensed, heavy, tight. */
.hero__heading {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 78%;
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--sclera);
  max-width: 13ch;
}

.hero__sub {
  margin-top: var(--space-md);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--mist);
  max-width: 40ch;
}

.hero__actions { margin-top: var(--space-lg); }

.hero__requirement,
.cta__note {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--mist-dim);
}

.store-badge {
  display: inline-block;
  border-radius: var(--radius-md);
}
.store-badge img {
  width: 244px;
  height: 82px;
  object-fit: contain;
}
.store-badge[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
}

/* Hero report card -------------------------------------------------
   The one bold object on the page: the app's own reading of a report.
   It starts as raw XML and resolves into the verdict (script.js). */

.hero__stage {
  display: flex;
  justify-content: center;
}

.report {
  position: relative;
  width: min(460px, 100%);
  background: var(--sclera);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  /* The iris-to-lid edge of the icon, as a single rim on the object. */
  box-shadow:
    0 0 0 3px var(--night),
    0 0 0 6px var(--iris-deep),
    0 30px 70px -24px rgba(0, 0, 0, 0.7);
}
.report::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 3px;
  background: linear-gradient(135deg, var(--iris) 0%, var(--iris-deep) 38%, var(--lid) 70%, var(--gold) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.report__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.report__domain {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.report__meta {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.report__toggle {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 22, 64, 0.08);
  color: var(--iris-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.report__toggle:hover { background: rgba(27, 22, 64, 0.14); }

.report__face { margin-top: 20px; }

.verdict {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.verdict__dot {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bad-solid);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
}
.verdict__title {
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--bad);
  line-height: 1.25;
}
.verdict__text {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.verdict__text code { color: var(--ink); }

.passbar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
}
.passbar__pass {
  width: 28%;
  background: var(--good-solid);
  transition: width 0.9s var(--ease-out);
}
.passbar__fail {
  flex: 1;
  background: var(--bad-solid);
}

.issues {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.issue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.issue__title { font-weight: 600; color: var(--ink); }
.issue__count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sev {
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.sev--critical { background: var(--bad-bg); color: var(--bad); }
.sev--warning  { background: var(--warn-bg); color: var(--warn); }

.raw {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--sclera);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
}
.raw .t { color: var(--iris); }

/* Demo states, armed only by script.js. Without JS the verdict shows. */
.report.is-raw-intro .issue { opacity: 0; transform: translateY(8px); }
.report.is-raw-intro .passbar__pass { width: 0; }

/* Statement ----------------------------------------------------------- */

.statement {
  max-width: 820px;
  margin-inline: auto;
  padding-block: var(--space-lg) var(--space-xl);
}
.statement__text {
  font-family: var(--font-display);
  font-weight: 450;
  font-stretch: 92%;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--mist);
}
.statement__answer {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 80%;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--sclera);
}

/* Screenshots ------------------------------------------------------------- */

.platforms {
  max-width: var(--container);
  margin-inline: auto;
}

/* Column widths follow each frame's aspect ratio (w/h) so all three share
   a height and baseline. Keep in step with the .shot ratios below. */
.platform-row {
  display: grid;
  grid-template-columns: 1.6fr 0.46fr 0.75fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: end;
}
.platform { min-width: 0; }

.platform img,
.shot {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.shot--mac,    .platform--mac img    { aspect-ratio: 16 / 10; }
.shot--iphone, .platform--iphone img { aspect-ratio: 1320 / 2868; }
.shot--ipad,   .platform--ipad img   { aspect-ratio: 3 / 4; }

/* Screenshots are flat captures; round them like the device and lift them off the page. */
.platform img {
  box-shadow: 0 0 0 1px var(--hairline), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.platform--mac img    { border-radius: 10px; }
.platform--iphone img { border-radius: 14% / 6.4%; }
.platform--ipad img   { border-radius: 4.5% / 3.4%; }

/* Placeholder frames until real screenshots are dropped in. */
.shot {
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--hairline);
  background: var(--faint);
  color: var(--mist-dim);
  font-size: 0.875rem;
  text-align: center;
  padding: 12px;
}
.shot--iphone { border-radius: 28px; }
.shot--ipad   { border-radius: 22px; }

.platform figcaption {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mist-dim);
}

/* Features -------------------------------------------------------------- */

.features {
  max-width: var(--container);
  margin-inline: auto;
  padding-block: var(--space-xl);
}

.feature-list {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
}

.feature dt {
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.005em;
  color: var(--sclera);
}
.feature dd {
  margin-top: 6px;
  max-width: 52ch;
  line-height: 1.6;
}
.feature dd code,
.faq-item dd code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--faint);
  color: var(--iris);
}

.platform-label {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--iris);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 0.15em;
}

/* Reader, not auditor: the page's one light panel ------------------------- */

.sclera {
  width: min(var(--container), 100% - 48px);
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg) clamp(24px, 5vw, var(--space-lg));
  background: var(--sclera);
  color: var(--ink);
  border-radius: var(--radius-lg);
}
.sclera__inner { max-width: 680px; }
.sclera__text {
  margin-top: var(--space-md);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.sclera__facts {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
}
.sclera__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-num {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 80%;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--iris-deep);
}
.sclera__facts li span:last-child {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Final CTA --------------------------------------------------------------- */

.cta {
  max-width: 820px;
  margin-inline: auto;
  padding-block: var(--space-lg) var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__heading {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 80%;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sclera);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

/* FAQ ------------------------------------------------------------------------ */

.faq {
  width: min(880px, 100% - 48px);
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg) clamp(20px, 5vw, var(--space-lg));
  background: var(--night-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.faq-list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq-item {
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
}
.faq-item:first-child { padding-top: 0; border-top: none; }
.faq-item dt {
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--sclera);
  text-wrap: balance;
}
.faq-item dd { margin-top: 8px; }
.faq-item dd > * + * { margin-top: var(--space-sm); }
.faq-item a {
  color: var(--iris);
  text-underline-offset: 3px;
}

/* Footer -------------------------------------------------------------------- */

.site-footer {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-lg) 24px var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--mist-dim);
  border-top: 1px solid var(--hairline);
}

.support-box {
  background: var(--iris);
  color: var(--night);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}
.support-box__title {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 85%;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  letter-spacing: -0.02em;
}
.support-box__text {
  margin: var(--space-sm) auto 0;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.support-box__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: var(--space-md);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--sclera);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out);
}
.support-box__email svg { flex-shrink: 0; }
.support-box__email:hover,
.support-box__email:focus-visible { transform: translateY(-2px); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a {
  display: inline-block;
  padding-block: 12px;
  color: var(--iris);
  text-underline-offset: 3px;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible { color: var(--sclera); }

/* Scroll reveal: visible by default; script.js arms it only with a fallback. */

[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].reveal-armed.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .support-box__email:hover,
  .support-box__email:focus-visible { transform: none; }
  .passbar__pass, .issue { transition: none; }
}

@media (forced-colors: active) {
  .platform-label, .faq, .sclera, .support-box, .report, .shot, .sev, .issue {
    border: 1px solid CanvasText;
  }
}

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__heading, .hero__sub { max-width: none; }

  .platform-row {
    grid-template-columns: 0.46fr 0.75fr;
    row-gap: var(--space-md);
  }
  .platform--mac { grid-column: 1 / -1; }

  .feature-list { grid-template-columns: 1fr; gap: 32px; }

  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .report { padding: 20px 18px 22px; }
  .report__head { flex-direction: column; }
  .issue { grid-template-columns: minmax(0, 1fr) auto; }
  .issue .sev { grid-column: 1 / -1; justify-self: start; }
}
