/* ===========================================================================
   attended.ca  ·  marketing site  ·  site.css
   ---------------------------------------------------------------------------
   The four public pages only: /, /how-it-works, /for-organizers, /pilot.
   The product UI keeps tokens.css and its own faces. Do not merge the two.

   Type:  Archivo 700          display, the wordmark, every headline, the big
                               numbers. Tight tracking is load bearing: at
                               -.05em the headlines read as one object. Do not
                               loosen it.
          Schibsted Grotesk    all body copy, labels, buttons. Unchanged from
                               the product, so the two halves still feel
                               related.
          Instrument Serif it. the voice lines only. Never a heading, never
                               body. One face, one job.
   =========================================================================== */

:root{
  /* ground and ink */
  --ink:#2A2140;          /* body text, light grounds */
  --ink-deep:#1B1430;     /* the hero ground */
  --ink-panel:#231C2E;    /* dark section panels */
  --ink-card:#2E2740;     /* a card on a dark panel */
  --soft:#5B5270;         /* secondary text, light grounds */
  --quiet:#6E6485;        /* tertiary. 5.2:1 on mist, passes AA */
  --line:#E8E2F0;
  --line-dark:#403752;
  --mist:#FAF8FC;
  --paper:#FFFFFF;

  /* on dark */
  --on-dark:#FAF8FC;
  --on-dark-soft:#CFC6DE;
  --on-dark-quiet:#8E85A0;

  /* accents. saffron once per screen. */
  --iris:#6B4FB0;
  --iris-deep:#55409A;
  --iris-pale:#EFE9FA;
  /* SAFFRON IS A DARK-GROUND COLOUR.
     #E8B33D measures 1.92 on paper, 1.82 on mist, 7.39 on ink-card.
     On a light ground, text that carries meaning uses --saffron-ink (5.05).
     Plain --saffron on light is ornament only: a repeated ordinal, a rule,
     a dot. If removing it would change what the reader understands, it is
     not ornament. */
  --saffron:#E8B33D;
  --saffron-ink:#8A6A18;  /* saffron as text on a light ground */
  --jade:#2F7A62;
  --jade-bright:#7FD4B4;  /* on dark only */
  --clay:#D4785C;

  --disp:'Archivo',system-ui,-apple-system,sans-serif;
  --ui:'Schibsted Grotesk',system-ui,-apple-system,sans-serif;
  --voice:'Instrument Serif',Georgia,serif;

  --page:1240px;
  --gut:56px;
  --tap:44px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--mist);color:var(--ink);
     font-family:var(--ui);font-size:17px;line-height:1.6;
     -webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:var(--iris)}
a:hover{color:var(--iris-deep)}
:focus-visible{outline:3px solid var(--iris);outline-offset:3px;border-radius:4px}

.wrap{max-width:var(--page);margin:0 auto;padding-inline:var(--gut)}

/* --- display scale ------------------------------------------------------- */
.d1,.d2,.d3,.d4{font-family:var(--disp);font-weight:700;margin:0;
                letter-spacing:-.05em;line-height:.95}
.d1{font-size:clamp(44px,7.2vw,92px)}
.d2{font-size:clamp(36px,5.9vw,76px)}
.d3{font-size:clamp(32px,4.3vw,56px);letter-spacing:-.045em;line-height:1}
.d4{font-size:clamp(24px,2.9vw,38px);letter-spacing:-.04em;line-height:1.04}

.eyebrow{font-size:13px;font-weight:700;letter-spacing:.18em;
         text-transform:uppercase;margin:0 0 26px}
.eyebrow--gold{color:var(--saffron)}          /* on dark */
.eyebrow--gold-ink{color:var(--saffron-ink)}  /* on light */
.eyebrow--iris{color:var(--iris)}

.lead{font-size:clamp(18px,1.7vw,21px);line-height:1.52;margin:0}
/* Option A, 13 Oct. Was Instrument Serif italic, a display serif whose italic
   was drawn for headlines at 40px and up; at the 20 to 26px these run at it
   went thin and hard to read. Set apart now by weight and by being darker
   than the --soft copy around it, rather than by a second typeface.
   .on-dark is declared below this rule, so class="voice on-dark" still
   lightens on the dark sections.
   Instrument Serif is NOT dropped from the font request: .foot__voice below
   still uses it on all five marketing pages, tokens.css uses it for .aside on
   the product screens, and the <link> that actually loads it is the
   unconditional one in _head.php, not the marketing-only one. */
.voice{font-family:var(--ui);font-style:normal;font-weight:600;
       font-size:clamp(19px,1.95vw,24px);line-height:1.45;
       letter-spacing:-.01em;color:var(--ink);margin:0}

.on-dark{color:var(--on-dark)}
.on-dark-soft{color:var(--on-dark-soft)}
.measure{max-width:60ch}

/* The gradient headline.
   color is set FIRST so an unsupported browser shows solid text rather than
   nothing at all. Without the @supports guard the text renders invisible. */
.d1--lit{color:var(--on-dark)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .d1--lit{
    background:linear-gradient(98deg,#FAF8FC 22%,#D3C3F3 58%,#AE97E4 100%);
    -webkit-background-clip:text;background-clip:text;
    color:transparent;
  }
}

/* --- buttons ------------------------------------------------------------- */
.btn{font-family:var(--ui);font-size:17px;font-weight:600;border:0;cursor:pointer;
     border-radius:12px;padding:18px 30px;min-height:56px;
     display:inline-flex;align-items:center;justify-content:center;
     text-decoration:none;transition:background .15s,color .15s}
.btn--primary{background:var(--iris);color:#fff}
.btn--primary:hover{background:var(--iris-deep);color:#fff}
.btn--ink{background:var(--ink);color:#fff}
.btn--ink:hover{background:var(--ink-deep);color:#fff}
.btn--light{background:var(--mist);color:var(--ink-deep)}
.btn--gold{background:var(--saffron);color:var(--ink-deep)}
.btn--ghost{background:transparent;color:var(--ink);border:1.5px solid #D9D0E8}
.btn--ghost-dark{background:transparent;color:var(--on-dark);border:1.5px solid #4A4066}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}

/* --- nav ----------------------------------------------------------------- */
.nav{background:var(--ink-deep)}
.nav__inner{min-height:72px;display:flex;align-items:center;gap:28px;
            flex-wrap:wrap;padding-block:20px}
.mark{font-family:var(--disp);font-weight:700;font-size:23px;
      letter-spacing:-.045em;text-decoration:none;color:var(--on-dark)}
.mark__dot{color:var(--saffron)}   /* the dot LEADS and is never the word's colour */
.nav__spacer{flex:1;min-width:16px}
.nav a.nav__link{font-size:15px;font-weight:500;color:var(--on-dark-soft);text-decoration:none}
.nav a.nav__link[aria-current="page"]{color:var(--on-dark);font-weight:600}
.nav__cta{font-size:15px;font-weight:600;color:var(--ink-deep);background:var(--mist);
          border-radius:10px;padding:11px 18px;min-height:var(--tap);
          display:flex;align-items:center;text-decoration:none}

/* --- hero ---------------------------------------------------------------- */
.hero{position:relative;background:var(--ink-deep);overflow:hidden}
/* The hero box is far wider than the photograph's 3:2, so cover crops on the
   vertical only and object-position's X does nothing at desktop widths.  To
   move the subject clear of the headline the box itself is stretched 8% past
   the right edge, which carries everything in it rightwards; overflow:hidden
   on .hero clips the spill.  Y is 33% so the headline crosses her forehead rather than her eyes, with her
   eyes clear below the type and her raised hand still below the
   nav instead of being cut off by the top edge. */
.hero__img{position:absolute;top:0;left:0;width:108%;max-width:none;height:100%;
           object-fit:cover;object-position:62% 33%;opacity:.46}
.hero__scrim{position:absolute;inset:0;
  background:linear-gradient(100deg,var(--ink-deep) 18%,rgba(27,20,48,.82) 48%,rgba(27,20,48,.18) 80%)}
.hero__inner{position:relative}
.hero__body{padding:106px 0 120px;max-width:820px}
.hero__sub{max-width:540px;margin:0 0 38px;color:var(--on-dark-soft)}
/* The three denials, one step below the lead.  They are a reassurance
   rather than an explanation, so they sit under the line that explains. */
.hero__deny{
  font-size:17px;line-height:1.5;color:var(--on-dark-quiet);
  margin:14px 0 0;max-width:460px;
}

/* --- strip --------------------------------------------------------------- */
.strip{background:var(--ink);border-top:1px solid #3A3155}
.strip__inner{padding-block:22px;display:flex;align-items:center;gap:30px;flex-wrap:wrap}
.strip__label{font-size:13px;font-weight:700;letter-spacing:.14em;
              text-transform:uppercase;color:#9C92B0}
.strip__item{font-size:15px;color:var(--on-dark-soft)}
.strip__dot{width:4px;height:4px;border-radius:50%;background:#4A4066}

/* --- sections ------------------------------------------------------------ */
.sec{padding-block:96px}
.sec--dark{background:var(--ink-panel);color:var(--on-dark)}
.sec--paper{background:var(--paper);border-block:1px solid var(--line)}
.split{display:flex;gap:64px;flex-wrap:wrap;align-items:flex-start}
.split--mid{align-items:center}
.split__a{flex:1 1 420px;min-width:290px}
.split__b{flex:1 1 400px;min-width:290px}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}
/* color is not optional here. .sec--dark sets color:var(--on-dark) on the
   section, and a white card inside one inherits it, so any heading without
   its own colour renders near-white on white. Measured 2026-10-20 on
   /how-it-works: the Presence and Identity headings were 1.06:1. .card p
   and .card__n escaped only because they set their own colour. Stating it
   on .card makes the whole class of bug impossible. */
.card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:32px 30px;color:var(--ink)}
.card__n{font-family:var(--disp);font-weight:700;font-size:38px;line-height:1;
         letter-spacing:-.04em;margin-bottom:14px}
.card h3{font-family:var(--disp);font-weight:700;font-size:25px;line-height:1.1;
         letter-spacing:-.035em;margin:0 0 10px}
.card p{font-size:17px;line-height:1.56;color:var(--soft);margin:0}

/* rule list: the numbered rows on /how-it-works */
.rows{display:flex;flex-direction:column}
.row{display:flex;gap:44px;flex-wrap:wrap;padding-block:38px;border-top:1px solid var(--line)}
.rows .row:last-child{border-bottom:1px solid var(--line)}
.sec--dark .row{border-color:var(--line-dark)}
.sec--dark .rows .row:last-child{border-bottom-color:var(--line-dark)}
.row__stage{flex:none;width:170px}
.row__body{flex:1 1 440px;min-width:290px;display:flex;flex-direction:column;gap:14px}
.row__body p{margin:0;font-size:18px;line-height:1.6}

/* --- the ledger ---------------------------------------------------------- */
.ledger{background:var(--ink-card);border:1px solid var(--line-dark);
        border-radius:24px;overflow:hidden}
.ledger__head,.ledger__foot{padding:24px 34px;display:flex;align-items:flex-start;
        gap:16px;flex-wrap:wrap}
.ledger__head{border-bottom:1px solid var(--line-dark);align-items:center}
.ledger__foot{border-top:1px solid var(--line-dark);font-size:15px;line-height:1.55;
        color:var(--on-dark-quiet)}
.ledger__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.ledger__cell{padding:34px;border-right:1px solid var(--line-dark)}
.ledger__cell:last-child{border-right:0}
.ledger__fig{font-family:var(--disp);font-weight:700;font-size:clamp(38px,4.7vw,60px);
        line-height:1;letter-spacing:-.05em;color:var(--on-dark)}
.ledger__fig--jade{color:var(--jade-bright)}
.ledger__fig--gold{color:var(--saffron)}
.ledger__cap{font-size:15px;color:#A79CBC;margin-top:10px}
@media(max-width:860px){
  .ledger__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ledger__cell:nth-child(2){border-right:0}
  .ledger__cell:nth-child(-n+2){border-bottom:1px solid var(--line-dark)}
}

/* --- panels and bands ---------------------------------------------------- */
.panel{background:var(--iris-pale);border-radius:24px;padding:48px 52px}
.band{position:relative;height:420px;overflow:hidden;background:var(--ink-deep)}
.band__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.band__scrim{position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(27,20,48,.93) 4%,rgba(27,20,48,.55) 42%,rgba(27,20,48,.1) 74%)}
.band__inner{position:relative;height:100%;display:flex;align-items:center}

/* A photo that starts at the centre of the PAGE, not the centre of the wrap,
   and runs off the right edge.  The picture is lifted out of .wrap and pinned
   to the section, so the text column has to be held back by hand: above the
   1240px page width the gap from the text to the centre line is a constant
   564px whatever the viewport, and below it the column is whatever half the
   screen leaves.  One gutter of air between the two in both cases. */
.bleedshot{position:relative;min-height:560px}
.bleedshot__text{max-width:min(500px,calc(50vw - 120px));padding-block:84px}
.bleedshot__img{position:absolute;top:0;right:0;bottom:0;left:50%;overflow:hidden}
.bleedshot__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media(max-width:860px){
  /* Stacked: the picture drops below the words and runs edge to edge. */
  .bleedshot{min-height:0}
  .bleedshot__text{max-width:none;padding-block:56px 34px}
  .bleedshot__img{position:relative;left:auto;right:auto;height:300px}
}

/* a photo that fills half a split, full bleed to the section edge */
.halfshot{flex:1 1 440px;min-width:290px;align-self:stretch;min-height:420px;
          position:relative;overflow:hidden}
.halfshot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* --- footer -------------------------------------------------------------- */
.foot{border-top:1px solid var(--line);padding:40px 0 56px}
.foot__inner{display:flex;gap:28px;flex-wrap:wrap;align-items:center}
.foot .mark{color:var(--ink);font-size:20px}
.foot__voice{font-family:var(--voice);font-style:italic;font-size:18px;color:var(--soft)}
.foot a{font-size:15px;color:var(--soft);text-decoration:none}
.foot__note{font-size:15px;color:var(--quiet)}

/* --- phone --------------------------------------------------------------- */
@media(max-width:760px){
  :root{--gut:20px}
  .hero__body{padding:64px 0 76px}
  .sec{padding-block:64px}
  .band{height:320px}
  .halfshot{min-height:300px}
  .panel{padding:32px 24px}
  .card{padding:26px 24px}
  .row{gap:16px;padding-block:28px}
  .row__stage{width:100%}
  .nav__inner{gap:16px}
  .nav a.nav__link{font-size:14px}
}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* --- the code box --------------------------------------------------------
   The product's front door, on the marketing site. Sized for a thumb on a
   phone in a badly lit hall: 72px input, 60px button, both well over --tap. */
.codebox-sec{padding-block:72px 76px;border-bottom:1px solid var(--line)}
.codebox-grid{display:flex;gap:64px;flex-wrap:wrap;align-items:flex-start}
.codebox-col{flex:1 1 430px;min-width:290px;max-width:520px}
.codebox-col--aside{padding-top:6px;max-width:460px}
.codebox-col--aside h2{margin:0 0 16px}
.codebox-col--aside p{font-size:18px;line-height:1.6;color:var(--soft);margin:0 0 12px}
.codebox-col--aside p:last-child{margin-bottom:0}

.codebox{background:var(--paper);border:1px solid var(--line);border-radius:22px;
         padding:28px;display:flex;flex-direction:column;gap:16px}
.codebox__label{font-size:13px;font-weight:700;letter-spacing:.16em;
                text-transform:uppercase;color:var(--quiet)}
.codebox__input{font-family:var(--disp);font-weight:700;font-size:34px;
  letter-spacing:.16em;text-align:center;text-transform:uppercase;color:var(--ink);
  background:var(--mist);border:1.5px solid #D9D0E8;border-radius:14px;
  padding:20px 16px;min-height:72px;width:100%;box-sizing:border-box}
.codebox__input::placeholder{color:#B5ABC6;letter-spacing:.16em}
.codebox__input:focus{border-color:var(--iris);outline:none;
  box-shadow:0 0 0 3px rgba(107,79,176,.18)}
.codebox__go{width:100%;font-size:18px;border-radius:14px;padding:18px;min-height:60px}
.codebox__help{font-size:15px;line-height:1.55;color:var(--soft);margin:4px 0 0}

.order{display:flex;flex-direction:column;gap:22px}
.order__row{display:flex;gap:16px}
.order__row strong{display:block;font-size:18px;margin-bottom:4px}
.order__row span:not(.order__dot){font-size:17px;line-height:1.55;color:var(--soft)}
.order__dot{width:11px;height:11px;border-radius:50%;flex:none;margin-top:7px}
.order__more{display:inline-block;margin-top:24px;font-size:16px;font-weight:600;
             text-decoration:none}

@media(max-width:760px){
  .codebox-sec{padding-block:44px 48px}
  .codebox-grid{gap:36px}
  .codebox{padding:22px}
  .codebox__input{font-size:30px;min-height:66px}
}

.order__links{display:flex;gap:22px;flex-wrap:wrap;margin-top:24px}
.order__links .order__more{margin-top:0}

/* The join form intro. Added 13 Oct: the form is the first thing an attendee
   ever sees and it opened straight on fields. */
.join__gets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.join__gets li{
  position:relative;padding-left:26px;font-size:17px;line-height:1.55;color:var(--soft);
}
.join__gets li::before{
  content:"";position:absolute;left:0;top:9px;width:9px;height:9px;
  border-radius:50%;background:var(--jade);
}
.join__safe{font-size:15px;line-height:1.55;color:var(--quiet);margin:18px 0 0;max-width:460px}
