/* ==========================================================================
   tap.yourcyber.guru — Marc Cohen NFC landing page — V2
   Tokens follow TrendAI Brand Guidelines 2026 v1.0.

   This is V1's stylesheet with additions for the Revision 2 content. Every
   measured value from V1 is unchanged: the tint ladder, the 3.9:1 interactive
   border, the amber focus ring with its 3px offset, the 56px tap targets,
   the 10px radius, and the prefers-contrast / forced-colors / print modes.
   Ratios are recorded in docs/test-results.md. Do not introduce a pairing
   that is not listed there.

   V2 additions are marked "V2:".
   ========================================================================== */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/work-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/work-sans-600.woff2") format("woff2");
}

.redacted {
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

:root {
  /* Brand palette — exact values, no substitutes */
  --black: #000000;          /* primary background */
  --void: #ffffff;           /* primary text */
  --trendai-red: #d71920;    /* primary action fill, top rule */
  --amber: #ff9500;          /* focus indicator only, used sparingly */

  /* Measured tints of --void on --black (ratios in test results) */
  --text-strong: rgba(255, 255, 255, 0.95);  /* 19.0:1 */
  --text-body: rgba(255, 255, 255, 0.82);    /* 13.9:1 */
  --text-muted: rgba(255, 255, 255, 0.72);   /* 10.6:1 */
  --border-ui: rgba(255, 255, 255, 0.42);    /*  3.9:1 — interactive borders */
  --hairline: rgba(255, 255, 255, 0.14);     /* decorative separators only */

  /* Non-brand-specified values. Chosen here and logged as judgment calls. */
  --radius: 10px;
  --tap: 56px;               /* exceeds the 44px minimum */
  --font: "Work Sans", Aptos, "Segoe UI", -apple-system, BlinkMacSystemFont,
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 100%;                       /* respects the reader's own size setting */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text-body);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Single restrained brand accent across the top edge. */
body::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--trendai-red);
}

.wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 30px 20px 44px;
}

/* ------------------------------- hero ----------------------------------- */

.hero { margin: 0; }

.portrait {
  display: block;
  width: min(176px, 100%);       /* shrinks rather than overflowing at 200% zoom */
  height: auto;
  aspect-ratio: 1 / 1;           /* space reserved up front, no layout shift */
  margin: 0 0 22px;
}

/* V2: the Revision 2 hero sentence is longer than V1's, which costs about two
   extra lines. V1 measured that a third button slipped below the fold on an
   iPhone SE, so the portrait steps down on the narrowest phones to buy that
   space back. The portrait feathers to #000000, so it must stay on pure
   black — see docs/decision-log.md. */
@media (max-width: 390px) {
  .portrait { width: min(140px, 100%); margin-bottom: 18px; }
}

h1 {
  margin: 0;
  font-size: 2.125rem;           /* 34px */
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--void);
}

.role {
  margin: 8px 0 0;
  font-size: 1.0625rem;          /* 17px */
  color: var(--text-strong);
}

/* Clear space around the logo is at least half its height (12px at 24px tall). */
.brandmark {
  margin: 20px 0 18px;
  line-height: 0;
}
.brandmark img {
  width: 118.75px;               /* exact 4.9479:1 artwork ratio, no distortion */
  height: 24px;                  /* above the 20px brand minimum */
}

.place {
  margin: 0;
  font-size: 0.875rem;           /* 14px */
  color: var(--text-muted);
}
/* V2.1: the identity lines stack. Moved here from the personal section so they
   sit above the fold, which is the only place a 20-second visitor reads. */
.place span { display: block; }

.pitch {
  margin: 18px 0 0;
  font-size: 1.125rem;           /* 18px */
  line-height: 1.5;
  color: var(--text-strong);
  max-width: 34ch;               /* keeps the rag tidy on wide screens */
}

/* ------------------------------ actions --------------------------------- */

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;                     /* V2: space for the icon */
  min-height: var(--tap);
  padding: 14px 20px;
  border: 1px solid var(--border-ui);
  border-radius: var(--radius);
  background: transparent;
  color: var(--void);
  font-family: inherit;
  font-size: 1.0625rem;          /* 17px */
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--trendai-red);
  border-color: var(--trendai-red);
  color: var(--void);            /* 5.19:1 — AA for normal text */
}

/* V2: Lucide outline icons. Stroke is currentColor so the icon follows the
   label in every mode, including forced colors. */
.btn svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

/* ------------------------- subordinate contacts -------------------------- */

.direct {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.direct li { border-bottom: 1px solid var(--hairline); }

.direct a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;               /* value drops to its own full-width line
                                    rather than breaking mid-number at high zoom */
  gap: 2px 14px;
  min-height: 52px;
  padding: 10px 2px;
  text-decoration: none;
}

.direct-label {
  flex: 0 0 auto;
  font-size: 0.875rem;           /* 14px */
  color: var(--text-muted);
}

.direct-value {
  font-size: 0.9375rem;          /* 15px */
  color: var(--void);
  text-align: right;
  overflow-wrap: anywhere;
}

/* ------------------------------- content -------------------------------- */

/* V2: was .help in V1. Renamed because there are now two content sections
   and "help" no longer describes both. Styles are unchanged. */
.block { margin: 34px 0 0; }

.block h2 {
  margin: 0 0 10px;
  font-size: 0.9375rem;          /* 15px */
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--void);
}

.block p {
  margin: 0 0 12px;
  font-size: 1rem;               /* 16px */
  line-height: 1.62;
  color: var(--text-body);
}
.block p:last-child { margin-bottom: 0; }

/* V2: closing prompt plus one repeated primary action. The Revision 2 page is
   taller than V1's, so returning to the top to save the contact is a real
   cost. One button, not the whole set. */
.close {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.close p {
  margin: 0 0 18px;
  font-size: 1.125rem;           /* 18px */
  font-weight: 600;
  line-height: 1.4;
  color: var(--void);
  max-width: 30ch;
}

.close .btn { margin: 0; }

.foot {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.foot p {
  margin: 0;
  font-size: 0.8125rem;          /* 13px */
  color: var(--text-muted);
}
.foot p + p { margin-top: 8px; }   /* V2: footer now carries more than one line */

/* ------------------------------ interaction ------------------------------ */

/* Amber ring sits on the black page because of the offset: 9.55:1 everywhere,
   including around the red button. Never relies on colour alone — the ring is
   a shape change as well. */
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--radius);
}

@media (hover: hover) {
  .btn:hover { border-color: var(--void); }
  .btn-primary:hover { background: #b9151b; border-color: #b9151b; }
  .direct a:hover .direct-value { text-decoration: underline; }
}

.btn:active { transform: translateY(1px); }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 120ms linear, border-color 120ms linear; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}

/* --------------------------- wider viewports ----------------------------- */

@media (min-width: 560px) {
  .wrap { max-width: 520px; padding: 56px 24px 64px; }
  .portrait { width: min(208px, 100%); }
  h1 { font-size: 2.5rem; }      /* 40px */
  .pitch { font-size: 1.1875rem; }
}

/* ------------------------- user preference modes ------------------------- */

@media (prefers-contrast: more) {
  :root {
    --text-body: #ffffff;
    --text-muted: #ffffff;
    --border-ui: #ffffff;
    --hairline: rgba(255, 255, 255, 0.55);
  }
  .btn { border-width: 2px; }
  a:focus-visible { outline-width: 4px; }
}

@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonBorder;
    background: ButtonFace;
    color: ButtonText;
  }
  .btn-primary { border-color: ButtonText; }
  .portrait, .brandmark img { forced-color-adjust: none; }
  a:focus-visible { outline: 3px solid Highlight; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before { display: none; }
  h1, .role, .direct-value, .btn { color: #000; }
  .btn { border-color: #000; }
  .btn-primary { background: none; }
  /* V2: new blocks also need to survive printing on white. */
  .close p, .block h2 { color: #000; }
}
