/* ==========================================================================
   tokens.css — the single source of truth for design values
   --------------------------------------------------------------------------
   Every value here was lifted from the approved v6 design comp
   (Proposal v6.dc.html). The comp had no stylesheet: it carried 373 inline
   style attributes, about half of them built as strings in JavaScript. These
   tokens are that design, normalised.

   RULE FOR MAINTAINERS: never hard-code a colour, font or radius in the other
   stylesheets. Add it here first. When this becomes a WordPress theme, this
   file is the one a designer can safely open.
   ========================================================================== */

:root {

  /* ---- Brand colour -----------------------------------------------------
     Named for what they are, not where they're used, so a token can move.   */

  --hr-ink:            #200227;  /* deep aubergine: dark sections, headings  */
  --hr-ink-body:       #3F2841;  /* body copy on light backgrounds          */
  --hr-muted:          #6B5D70;  /* captions, metadata, secondary labels    */
  --hr-paper:          #FBFAFB;  /* page background                         */
  --hr-white:          #FFFFFF;

  --hr-magenta:        #C93B76;  /* primary action, ticks, active states    */
  --hr-magenta-ink:    #B81454;  /* links + magenta text (darker, for AA)   */
  --hr-required:       #B1391F;  /* the * on a required field                */
  --hr-magenta-hover:  #B52B5F;  /* primary button hover                    */

  /* Pinks and lilacs read on dark backgrounds only. */
  --hr-pink:           #FF87B4;  /* eyebrows + links on ink                 */
  --hr-pink-soft:      #FF9FC3;  /* savings badge text                      */
  --hr-lilac:          #C9B6CF;  /* body copy on ink                        */
  --hr-lilac-muted:    #B39BBB;  /* metadata on ink                         */
  --hr-lilac-warm:     #DCCEE0;  /* next-steps list copy                    */
  --hr-pink-dotted:    #E39BBE;  /* dotted underline on the review legend   */

  /* ---- Lines and surfaces ---------------------------------------------- */

  --hr-line:           #E6E2EA;  /* card + panel borders                    */
  --hr-line-soft:      #EFECF2;  /* rules inside a card                     */
  --hr-line-section:   #E9E6EC;  /* the hairline between page sections      */
  --hr-line-field:     #DFDAE4;  /* form control borders                    */
  --hr-line-feature:   #DAD4E0;  /* featured (maintenance) card border      */
  --hr-line-ghost:     #CFC8D6;  /* ghost button border                     */
  --hr-box-border:     #908094;  /* unchecked selection box, light card     */
  --hr-box-border-dark:#A992AF;  /* unchecked selection box, dark card      */

  --hr-track:          #F2EFF3;  /* segmented-control track, empty checkbox */
  --hr-tint:           #FCEEF3;  /* magenta tint behind badges              */
  --hr-hover-tint:     #F6F3F8;  /* inactive tab hover                      */
  --hr-hatch-a:        #F6F3F8;  /* video placeholder hatching              */
  --hr-hatch-b:        #EBE7EF;
  --hr-photo-a:        #F2EFF3;  /* testimonial photo placeholder hatching  */
  --hr-photo-b:        #E8E4EC;

  /* ---- Dark-section surfaces ------------------------------------------- */

  --hr-dark-rule:      #40154C;  /* rule on ink                             */
  --hr-dark-border:    #4C2E53;  /* border on ink                           */
  --hr-dark-card:      #3A1E40;  /* savings card, tooltip                   */
  --hr-dark-card-alt:  #33183A;  /* rush panel                              */
  --hr-dark-btn-hover: #3A1044;  /* secondary button hover                  */

  /* The brand gradient. Not currently used — the toast moved to white with a
     status icon — but kept as a brand asset rather than re-derived later.

     The brand gradient, diagonal, with the gold stop pushed past 100%.
     Running it to 130% means the visible area never reaches full #FFCD1C —
     it stops around #FFDC60 — so the yellow fans out across the whole shape
     instead of banding into a solid block at one end.

     That has a contrast dividend: at #FFDC60 even magenta clears AA (4.79:1),
     where against full gold it didn't (4.29:1). */
  --hr-brand-gradient: linear-gradient(135deg,
                         #FFDCE0 0%, #FFEAED 22%, #FFE792 78%, #FFCD1C 130%);

  /* The cover's radial gradient, kept whole so it can't drift apart. */
  --hr-cover-bg: radial-gradient(70% 60% at 92% 0%,
                   #43092F 0%, #300529 42%, #230328 70%, #200227 100%);

  /* Translucent fills. Kept as tokens because they appear in several files. */
  --hr-on-dark-field:  rgba(251, 250, 251, .08);  /* input on ink           */
  --hr-on-dark-hover:  rgba(255, 135, 180, .12);  /* ghost hover on ink     */
  --hr-pink-badge-bg:  rgba(255, 135, 180, .16);  /* savings badge          */
  --hr-quote-mark:     rgba(255, 135, 180, .22);  /* big cover quote mark   */
  --hr-link-underline: rgba(184, 20, 84, .18);    /* resting underline      */
  --hr-link-underline-dark: rgba(255, 135, 180, .22);

  /* ---- Type -------------------------------------------------------------
     Three families, all self-hosted from ./fonts. Sharp Grotesk is display
     only — never set body copy in it.                                      */

  --hr-font-sans:    'Sharp Sans', system-ui, -apple-system, sans-serif;
  --hr-font-display: 'Sharp Grotesk', 'Sharp Sans', system-ui, sans-serif;
  --hr-font-mono:    'Pitch Sans', ui-monospace, SFMono-Regular, monospace;

  /* The home page only. A high-contrast italic serif, set enormous over a
     painting — it is doing a different job from anything in a proposal, and
     it is the one face that is not part of the brand kit. Set the real
     family here once it is chosen and the page picks it up. */
  --hr-font-art:     'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;

  /* Fixed steps. 15px is the workhorse: most body copy in the comp is 15px. */
  --hr-text-xs:    12px;   /* mono micro-labels                             */
  --hr-text-sm:    13px;   /* hours figure, step numbers                    */
  --hr-text-sm-alt:13.5px; /* cover attribution, fine print                 */
  --hr-text-base:  14px;   /* mono eyebrows, builder attribute values       */
  --hr-text-form:  14.5px; /* form control text                             */
  --hr-text-md:    15px;   /* DEFAULT body copy                             */
  --hr-text-lg:    16px;   /* buttons, intro paragraphs on the expired page */
  --hr-text-lg-alt:16.5px; /* primary CTA                                   */
  --hr-text-xl:    17px;   /* savings card heading, price unit              */
  --hr-text-2xl:   18px;   /* contact card name, "Due today"                */
  --hr-text-3xl:   19px;   /* add-on card headings                          */

  /* Fluid steps. Each one is a specific moment in the design, so they are
     named for the moment rather than an abstract scale — the comp's headings
     genuinely don't sit on a single ratio.                                  */
  --hr-h1-cover:    clamp(34px, 5vw, 58px);
  --hr-h1-expired:  clamp(34px, 5vw, 54px);
  --hr-h1-sheet:    clamp(32px, 4vw, 46px);
  --hr-h2-section:  clamp(30px, 4vw, 48px);
  --hr-h2-letter:   clamp(28px, 3.4vw, 40px);
  --hr-h2-success:  clamp(26px, 3vw, 34px);
  --hr-h2-accept:   clamp(24px, 2.8vw, 31px);
  --hr-h3-feature:  clamp(22px, 2.3vw, 27px);
  --hr-h3-row:      clamp(20px, 2vw, 24px);
  --hr-h3-builder:  clamp(20px, 2.1vw, 24px);
  --hr-h3-why:      clamp(19px, 1.9vw, 23px);
  --hr-total:       clamp(24px, 2.6vw, 32px);
  --hr-total-label: clamp(19px, 2vw, 23px);
  --hr-maint-price: clamp(30px, 3.2vw, 38px);
  --hr-completion:  clamp(20px, 2.2vw, 26px);
  --hr-faq-q:       clamp(17px, 1.8vw, 19px);
  --hr-cover-quote: clamp(16px, 1.6vw, 19px);
  --hr-quote-glyph: clamp(92px, 9.9vw, 123px);

  /* Line heights used often enough to be worth naming. */
  --hr-leading-tight: 1.2;
  --hr-leading-head:  1.18;
  --hr-leading-body:  1.65;
  --hr-leading-loose: 1.7;

  --hr-tracking-eyebrow: .14em;  /* mono eyebrow above each heading         */
  --hr-tracking-label:   .12em;
  --hr-tracking-badge:   .1em;
  --hr-tracking-micro:   .06em;

  /* ---- Space ------------------------------------------------------------ */

  --hr-container:  1240px;  /* the measure every section aligns to          */
  --hr-header-h:   76px;
  --hr-mobile-bar-h: 104px;   /* accept bar: text + 52px button + padding */
  --hr-scroll-pad: 92px;    /* header height + breathing room for anchors   */

  --hr-section-y:  clamp(64px, 8vw, 112px);
  --hr-section-x:  clamp(18px, 3vw, 32px);
  --hr-cover-top:  clamp(120px, 12vw, 168px);
  --hr-cover-bot:  clamp(56px, 7vw, 96px);
  --hr-close-bot:  clamp(96px, 10vw, 140px);  /* next-steps has extra floor */

  --hr-gap-head:   clamp(32px, 4vw, 48px);  /* heading block → content      */
  --hr-gap-cards:  clamp(16px, 2vw, 22px);
  --hr-row-y:      clamp(24px, 3vw, 34px);  /* quote/timeline row padding   */
  --hr-row-x:      clamp(20px, 3vw, 34px);
  --hr-card-pad:   clamp(24px, 3vw, 36px);

  /* ---- Radius ----------------------------------------------------------- */

  --hr-r-xs:   6px;
  --hr-r-sm:   8px;
  --hr-r-md:   10px;   /* buttons and inputs                                */
  --hr-r-lg:   12px;
  --hr-r-xl:   14px;
  --hr-r-2xl:  16px;   /* the big quote / timeline cards                    */
  --hr-r-3xl:  18px;
  --hr-r-pill: 999px;

  /* ---- Shadow ----------------------------------------------------------- */

  --hr-shadow-card:     0 8px 24px -18px rgba(32, 2, 39, .40);
  --hr-shadow-panel:    0 40px 75px -28px rgba(198, 190, 200, .55);
  --hr-shadow-tab:      0 -18px 40px -22px rgba(198, 190, 200, .90);
  --hr-shadow-float:    0 10px 26px -6px rgba(198, 190, 200, .95),
                        0 26px 60px -18px rgba(198, 190, 200, .70);
  --hr-shadow-sticky:   0 -6px 30px rgba(32, 2, 39, .22);
  --hr-shadow-mobile:   0 -6px 24px -14px rgba(32, 2, 39, .35);
  --hr-shadow-tooltip:  0 10px 30px -10px rgba(32, 2, 39, .55);
  --hr-shadow-cta:      0 30px 75px rgba(198, 190, 200, .45);

  /* ---- Motion -----------------------------------------------------------
     The comp leans on one long, soft ease for colour and a shorter one for
     mechanical movement (rotation, height). base.css switches all of this
     off under prefers-reduced-motion.                                       */

  --hr-ease:      cubic-bezier(.16, 1, .3, 1);
  --hr-ease-mech: cubic-bezier(.4, 0, .2, 1);
  /* For things that draw themselves across the screen — the signature, the
     timeline bars. --hr-ease is a hard expo-out: it leaves fast and crawls to
     a stop, which reads as uneven on a long wipe. This one keeps a steadier
     pace and settles gently. */
  --hr-ease-draw: cubic-bezier(.33, .9, .35, 1);

  --hr-dur-slow:  .9s;    /* colour / border fades                          */
  --hr-dur-mid:   .45s;
  --hr-dur-panel: .32s;   /* collapsible open / close                       */
  --hr-dur-fast:  .18s;

  /* ---- Layer order ------------------------------------------------------
     Collected so overlaps are decided in one place instead of by accident.  */

  --hr-z-header:  600;
  --hr-z-float:   650;
  --hr-z-bar:     700;
  --hr-z-dialog:  1000;
  /* Above the dialog. The toast confirms actions taken inside the Accept
     panel — removing a line from the breakdown — so it has to clear the
     panel's backdrop rather than be blurred along with the page behind it. */
  --hr-z-toast:   1100;
}

/* --------------------------------------------------------------------------
   Breakpoints
   --------------------------------------------------------------------------
   The comp had no media queries: it branched on a `w` value held in React
   state (st.w >= 1000, st.w < 1120, and so on). Those exact numbers became the
   media queries below, so layout now survives with JavaScript disabled.

   Custom properties can't be used in media queries, so these live as comments
   and the literal values appear in the other stylesheets. Keep them in sync.

     700px   why-grid 1 → 2 columns; builder attribute rows go two-up
     860px   builder panel: stacked → video beside copy
     900px   cover: stacked → headline beside testimonial
    1000px   quote + timeline rows: stacked → three columns
    1040px   why-grid 2 → 3 columns
    1120px   NAV BREAKPOINT: hamburger below, inline tabs above.
             Also the desktop/mobile split for the sticky bar.
   -------------------------------------------------------------------------- */
