/* =============================================================================
   0Wire Communications — global stylesheet
   The single source of truth for the whole site. Nothing is styled inline.

   1.  Design tokens
   2.  Reset & base elements
   3.  Typography
   4.  Layout: wrap, sections, rows
   5.  Buttons & links
   6.  Forms
   7.  Site header & navigation
   8.  Hero
   9.  Cards, lists & panels
   10. Plans comparison table
   11. Contact
   12. Site footer
   13. Utilities
   14. Responsive
============================================================================= */


/* -----------------------------------------------------------------------------
   1. Design tokens — change a value here and it changes everywhere
-------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --purple:       #5B3A9E;
  --purple-dark:  #452B7A;
  --purple-soft:  #EFEAF8;
  --magenta:      #8A3595;
  --magenta-soft: #F7E9F9;
  --teal:         #0B7A6F;
  --teal-soft:    #E3F4F1;
  --amber:        #9A5B13;
  --amber-soft:   #F6EEE2;
  --violet:       #5B45B0;
  --violet-soft:  #EEEAF9;
  --danger:       #D64545;
  --danger-soft:  #FDECEC;

  /* Neutrals */
  --ink:          #0E1A2B;
  --body:         #3D4A5C;
  --muted:        #5A677A;
  --line:         #E3E8EF;
  --line-soft:    #EEF2F7;
  --line-strong:  #D5DCE6;
  --field:        #CDD5E0;
  --soft:         #F4F7FB;
  --soft-alt:     #F8FAFC;
  --footer-bg:    #EEF2F7;
  --white:        #FFFFFF;

  --gradient: linear-gradient(90deg, var(--purple), var(--magenta));

  /* Font families */
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Type scale — fluid between mobile and desktop */
  --fs-h1:       clamp(1.7rem, 1.11rem + 2.516vw, 3.375rem);   /* 27.2 → 54 */
  --fs-h2:       clamp(1.875rem, 1.43rem + 1.40vw, 2.500rem);  /* 30 → 40 */
  --fs-h3:       clamp(1.375rem, 1.29rem + 0.28vw, 1.500rem);  /* 22 → 24 */
  --fs-h4:       1.250rem;                                     /* 20 */
  --fs-h5:       1.125rem;                                     /* 18 */
  --fs-display:  2.125rem;                                     /* 34 — plan prices */
  --fs-overline: 0.9375rem;                                    /* 15 */

  --fs-lead:     1.250rem;   /* 20 */
  --fs-body:     1.125rem;   /* 18 */
  --fs-body-sm:  1.0625rem;  /* 17 */
  --fs-sm:       1rem;       /* 16 */
  --fs-xs:       0.9375rem;  /* 15 */
  --fs-2xs:      0.875rem;   /* 14 */

  --lh-tight:    1.12;
  --lh-heading:  1.2;
  --lh-body:     1.6;

  --tracking-tight: -0.022em;
  --tracking-wide:   0.075em;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 96px;

  /* Radii, shadows, layout */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  --shadow-sm: 0 12px 32px rgba(14, 26, 43, 0.06);
  --shadow:    0 12px 32px rgba(14, 26, 43, 0.08);

  --wrap:      1200px;
  --gutter:    var(--space-6);
  /* Distance from the wrap's content edge out to the viewport edge —
     lets an element inside .wrap bleed to the screen edge. */
  --bleed:     calc((100vw - min(100vw, calc(var(--wrap) + var(--gutter) * 2))) / 2 + var(--gutter));
  --section-y: var(--space-11);
  --header-h:  96px;

  --transition: 0.15s ease;
}


/* -----------------------------------------------------------------------------
   2. Reset & base elements
-------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
p { margin: 0; }
address { font-style: normal; }

a { color: var(--purple); }
a:hover { color: var(--purple-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* -----------------------------------------------------------------------------
   3. Typography — one scale for the whole site
   Elements carry the default size; the .h1–.h5 classes let any element
   borrow another step without writing new CSS.
-------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--ink);
  /* Long single words must not overflow their column on narrow screens.
     `manual` keeps browsers from inserting their own hyphens — a word only
     breaks where a soft hyphen is authored, or as a last resort without one. */
  hyphens: manual;
  overflow-wrap: break-word;
}

h1, .h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
h2, .h2, .section-title {
  font-size: var(--fs-h2);
  letter-spacing: var(--tracking-tight);
}
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); }

/* Small uppercase label — footer column headings and similar */
h6, .h6, .overline {
  font-family: var(--font-heading);
  font-size: var(--fs-overline);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Purple uppercase kicker above a heading */
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--purple);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--body);
  max-width: 60ch;
}

.muted { color: var(--muted); }


/* -----------------------------------------------------------------------------
   4. Layout: wrap, sections, rows
-------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--soft { background: var(--soft); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-7);
  margin-bottom: var(--space-9);
}
.section-head > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.section-head--center {
  justify-content: center;
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Rows — the standard grid used everywhere.
   .row on its own is a single column; add a modifier for more. */
.row {
  display: grid;
  gap: var(--gap, var(--space-6));
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
}
.row--2 { --cols: 2; }
.row--3 { --cols: 3; }
.row--4 { --cols: 4; }

.row--tight { --gap: var(--space-4); }
.row--top   { align-items: start; }
.row--loose { --gap: var(--space-10); }

/* Main content beside a fixed-width aside (hero art, contact form) */
.row--split { grid-template-columns: minmax(0, 1fr) minmax(0, var(--aside, 520px)); }

/* Vertical rhythm inside a column */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* A wrapping row of buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
  /* As wide as its buttons on one line; when they no longer fit and wrap,
     each fills the row, so stacked buttons share one width. */
  width: fit-content;
  max-width: 100%;
}
.button-row > .btn { flex: 1 1 auto; }


/* -----------------------------------------------------------------------------
   5. Buttons & links — every button on the site is a .btn
-------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  line-height: 1.2;
  padding: var(--space-4) 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition);
}

.btn--primary {
  background: var(--gradient);
  background-origin: border-box;
  color: var(--white);
}
.btn--primary:hover { color: var(--white); filter: brightness(1.08); }

.btn--outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--field);
}
.btn--outline:hover { color: var(--ink); border-color: var(--purple); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--purple); }

.btn--sm    { font-size: var(--fs-sm);   padding: var(--space-3) var(--space-5); }
.btn--lg    { font-size: var(--fs-lead); padding: 18px var(--space-8); }
.btn--xl    { font-size: 1.375rem; padding: 20px var(--space-9); border-radius: var(--radius); }
.btn--block { width: 100%; }

/* Inline "Learn more →" link */
.text-link {
  font-weight: 600;
  font-size: var(--fs-body-sm);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus-visible { left: 0; }


/* -----------------------------------------------------------------------------
   6. Forms
-------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
}
.field textarea { height: 140px; padding: var(--space-3) 14px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.hp-field { position: absolute; left: -9999px; }

/* Server-side errors, shown after a submission bounced back to the form */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error {
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--danger);
}
.form-alert {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-xs);
  color: var(--ink);
  background: var(--danger-soft);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
}

.form-note {
  font-size: var(--fs-2xs);
  color: var(--muted);
  text-align: center;
}


/* -----------------------------------------------------------------------------
   7. Site header & navigation
-------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.logo img { height: 72px; width: auto; }

.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-7);
}
.main-nav li { position: relative; }

.nav-top {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 28px 0;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  /* Buttons get line-height: normal from the UA form-control styles while
     links inherit the body's — set it explicitly so every item's text sits
     on the same baseline. */
  line-height: var(--lh-body);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.nav-top:hover,
.nav-top.is-current { color: var(--purple); }
.nav-top svg { width: 16px; height: 16px; }

.dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--body);
  text-decoration: none;
}
.dropdown a:hover { background: var(--soft); color: var(--purple); }
/* The page you're on, highlighted inside its menu */
.dropdown a[aria-current="page"] {
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 600;
}
.main-nav li:hover > .dropdown,
.main-nav li:focus-within > .dropdown { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.login-link {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }


/* -----------------------------------------------------------------------------
   8. Hero
-------------------------------------------------------------------------- */
.hero {
  background: var(--soft);
  padding: 88px 0;
}
.hero-grid {
  --aside: 520px;
  --gap: var(--space-10);
  align-items: center;
}
.hero-art picture { display: block; }
.hero-art svg,
.hero-art img { width: 100%; height: auto; display: block; }

/* A hero whose artwork is a cut-out photo: it sits on the section's base line
   instead of floating in the middle. */
.hero--flush {
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: clip;       /* contains the right-hand bleed */
}
.hero--flush .hero-grid {
  /* Fluid, so the copy column never gets too narrow for a long word
     between the 960px breakpoint and full width. */
  --aside: clamp(340px, 38vw, 540px);
  --gap: var(--space-8);
  align-items: end;
}
.hero--flush .hero-copy {
  justify-content: center;
  padding-block: var(--space-10);
}
.hero--flush .hero-art {
  align-self: end;
  margin-right: calc(var(--bleed) * -1);
}

.hero--page { margin-top: var(--space-9); padding: var(--space-9) 0 var(--space-10); }
/* A page hero with no artwork: keep the copy to a readable line length. */
.hero--page > .wrap > .hero-copy { max-width: 820px; }

/* A page hero whose artwork breaks out of the tinted band at the top AND the
   bottom. The band's height is set by the copy column; the artwork's negative
   block margins pull it past that by equal amounts top and bottom, and the
   z-index keeps it above the next section's background. */
.hero--overflow {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 0;
  /* The artwork breaks out by --space-10 above the band, so the band needs that
     much extra clearance to keep the artwork off the breadcrumb bar. */
  margin-top: calc(var(--space-10) + var(--space-7));
}
.hero--overflow .hero-grid {
  --aside: 700px;
  --gap: var(--space-6);
  align-items: center;
}
.hero--overflow .hero-art {
  align-self: center;
  margin-block: calc(var(--space-10) * -1);
}
/* The copy column stretches to the band height, so centre its contents rather
   than letting them pack against the top. A tighter column also keeps the band
   shorter than the artwork, which is what lets the artwork break out at all. */
.hero--overflow .hero-copy {
  align-self: stretch;
  justify-content: center;
  gap: var(--space-4);
}
.hero--overflow .hero-copy .lead {
  font-size: var(--fs-body-sm);
  line-height: 1.55;
}
/* Narrower artwork column, for heroes whose illustration would otherwise
   dominate the band. The break-out above and below is unchanged. */
.hero--overflow.hero--art-sm .hero-grid { --aside: 600px; }
/* Deeper break-out: a shorter band with the artwork spilling further past it,
   top and bottom. For artwork with a lot of empty space around it. Desktop
   only — below 960px the hero stacks and the standard rules apply. */
@media (min-width: 961px) {
  /* The artwork's transparent top edge may tuck up behind the breadcrumb bar,
     so the band sits closer to the header. pointer-events keeps that invisible
     strip from blocking clicks on the breadcrumb links. */
  .hero--overflow.hero--pop { margin-top: var(--pop-gap, 72px); }
  .hero--overflow.hero--pop .hero-art {
    margin-top: calc(var(--pop-top, 112px) * -1);
    margin-bottom: calc(var(--pop-bottom, 112px) * -1);
    pointer-events: none;
  }
  /* For artwork that fills its top edge but fades out into a soft glow at the
     bottom: less break-out above (nothing tucks behind the breadcrumb), more
     below so the solid part still clears the band. */
  .hero--overflow.hero--pop-low { --pop-gap: 88px; --pop-top: 80px; --pop-bottom: 150px; }
}

/* Breadcrumb: a solid brand-magenta band sitting flush under the site header,
   in its own block above the hero so it never tints the hero band. */
.breadcrumb-bar {
  padding: 14px 0;
  background: var(--magenta);
  color: var(--white);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--white);
}
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }
.breadcrumb span[aria-hidden] { color: var(--white); opacity: 0.55; }
.breadcrumb a:focus-visible { outline-color: var(--white); }


/* -----------------------------------------------------------------------------
   9. Cards, lists & panels
-------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card p { color: var(--body); }
.card .text-link { margin-top: auto; }

/* Icon tile — white glyph on the brand button gradient */
.icon-tile {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--gradient);
  color: var(--white);
}
.icon-tile svg { width: 26px; height: 26px; }

/* Executive biography — portrait beside the copy */
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.bio {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}
.bio__portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--purple-soft);
}
.bio__portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio__initials {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--purple);
}
.bio__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.bio__body p { color: var(--body); }
.bio__role {
  margin-top: calc(var(--space-2) * -1);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--purple);
}

/* Placeholder panel for a page awaiting its content */
.notice {
  display: flex;
  flex-direction: column;
  /* stretch, so headings and copy run the full width of the box */
  align-items: stretch;
  gap: var(--space-4);
  padding: var(--space-9);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.notice p { color: var(--body); }
.notice .button-row { align-self: flex-start; }
/* Breathing room when a notice sits directly under a table */
.table-scroll + .notice { margin-top: 10px; }
/* A notice closing a section that already holds cards above it */
.notice--spaced { margin-top: var(--space-9); }

/* Link list card with an illustrated header */
.link-list {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.link-list__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}
.link-list__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-7);
}
.link-list h3 { margin-bottom: var(--space-1); }
.link-list__blurb {
  margin-top: calc(var(--space-2) * -1);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--muted);
}
/* Each link is a full-width row: the negative inline margin lets the hover
   highlight bleed out to the card's edges, past the body padding. */
.link-list a {
  display: block;
  padding: 9px var(--space-7);
  margin-inline: calc(var(--space-7) * -1);
  font-size: var(--fs-body-sm);
  color: var(--body);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}
.link-list a:hover,
.link-list a:focus-visible {
  background: var(--magenta-soft);
  color: var(--magenta);
}
.link-list a:focus-visible { outline-offset: -3px; }

/* Plan summary cards */
.plan-card { padding: var(--space-7); gap: var(--space-3); }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.plan-card .tick-list { margin-top: var(--space-2); margin-bottom: var(--space-5); }
.plan-price { font-size: var(--fs-xs); font-weight: 600; }
.price-teal   { color: var(--teal); }
.price-purple { color: var(--purple); }
.price-violet { color: var(--violet); }

.feature-panel {
  --gap: var(--space-10);
  margin-top: var(--space-9);
  padding: var(--space-9);
  background: var(--soft);
  border-radius: var(--radius-xl);
}
.feature-panel h3 { margin-bottom: var(--space-4); }
.feature-panel p  { color: var(--body); }

/* Tick list — feature highlights inside a card */
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--body);
}
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.tick-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--magenta);
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.chips li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  /* Half a one-line chip's height: one-line chips are full pills, while a
     chip whose text wraps keeps straight sides with rounded corners. */
  border-radius: var(--space-6);
}
/* Never squeezed by long text; centred on the first line of text */
.chips svg { flex: none; width: 16px; height: 16px; margin-top: 0.3em; color: var(--magenta); }


/* -----------------------------------------------------------------------------
   10. Plans comparison table
-------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.plans-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  /* Fixed layout so every plan column is exactly the same width,
     regardless of how long the values inside them are. */
  table-layout: fixed;
}
.plans-table th,
.plans-table td { border-bottom: 1px solid var(--line-soft); }
.plans-table thead th {
  vertical-align: bottom;
  padding: var(--space-7) var(--space-6);
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.plans-table thead th + th,
.plans-table td { border-left: 1px solid var(--line-soft); }
.plans-table thead th:first-child {
  width: 34%;
  padding-left: var(--space-7);
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--muted);
}
/* The plan columns split the remainder evenly */
.plans-table thead th + th { width: 22%; }
/* Column widths for tables with two or four plans instead of three */
.plans-table--1 { min-width: 480px; }
.plans-table--1 thead th:first-child { width: 50%; }
.plans-table--1 thead th + th { width: 50%; }
.plans-table--2 thead th + th { width: 33%; }
.plans-table--4 { min-width: 900px; }
.plans-table--4 thead th:first-child { width: 28%; }
.plans-table--4 thead th + th { width: 18%; }

.plan-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.plan-head .amount {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: var(--lh-heading);
}
.plan-head .per {
  min-height: var(--space-6);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.plan-head .btn {
  width: 100%;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  padding: 13px 0;
}
/* Text in place of an order button, for a plan that cannot be bought online */
.plan-head .plan-note {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--body);
  text-wrap: balance;
}

.plans-table .group th {
  padding: 18px var(--space-7);
  text-align: left;
  font-size: var(--fs-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  background: var(--soft-alt);
  border-bottom: 1px solid var(--line);
}
.plans-table tbody th[scope="row"] {
  padding: var(--space-4) var(--space-7);
  text-align: left;
  font-size: var(--fs-body-sm);
  font-weight: 500;
}
.plans-table td {
  padding: var(--space-4) var(--space-6);
  text-align: center;
  font-size: var(--fs-body-sm);
  color: var(--body);
}

/* Secondary detail inside a table row label */
.feature-note {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-2xs);
  font-weight: 400;
  color: var(--muted);
}
.table-note {
  margin-top: var(--space-4);
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.yes {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--magenta-soft);
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.yes svg { width: 16px; height: 16px; }
.no {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--field);
  vertical-align: middle;
}


/* -----------------------------------------------------------------------------
   11. Contact
-------------------------------------------------------------------------- */
.contact-grid {
  --aside: 560px;
  --gap: 72px;
  align-items: start;
}
.contact-copy {
  gap: var(--space-5);
  padding-top: var(--space-3);
}
.contact-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--body);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ink);
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover { color: var(--purple); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}


/* -----------------------------------------------------------------------------
   12. Site footer
-------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  padding: var(--space-10) 0 var(--space-8);
}
.row--footer {
  --gap: var(--space-9);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 340px;
}
.footer-brand img { height: 64px; width: auto; }
.footer-brand address,
.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--body);
}
.footer-contact a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover { color: var(--purple); }
.footer-col h4 { margin-bottom: var(--space-4); }
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-sm);
}
.footer-col a { color: var(--body); text-decoration: none; }
.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-2xs);
  color: var(--muted);
}
.footer-credit {
  color: var(--muted);
  text-decoration: none;
}
.footer-credit:hover { color: var(--purple); text-decoration: underline; }


/* -----------------------------------------------------------------------------
   13. Utilities
-------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }


/* -----------------------------------------------------------------------------
   14. Responsive
-------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: var(--space-2) var(--gutter) var(--space-6);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  /* Dims the page behind the open menu. It sits just under the sticky header
     (z-index 50), and a tap on it closes the menu without reaching the links
     underneath. */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(14, 26, 43, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  body.nav-open::before { opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .nav-top {
    width: 100%;
    padding: 14px 0;
    justify-content: space-between;
    font-size: var(--fs-body-sm);
  }
  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 var(--space-2) var(--space-2);
    border: 0;
    box-shadow: none;
  }
  .main-nav li:hover > .dropdown { display: none; }
  .main-nav li.is-open > .dropdown,
  .main-nav li:focus-within > .dropdown { display: block; }
  .header-actions .login-link { display: none; }
}

@media (max-width: 960px) {
  .row--split,
  .feature-panel { grid-template-columns: minmax(0, 1fr); --gap: var(--space-9); }
  .hero-art { max-width: 520px; }
  .hero--flush .hero-grid { --gap: var(--space-8); }
  .hero--flush .hero-copy { padding-block: 0 var(--space-6); }
  .hero--flush .hero-art { margin-inline: auto; margin-right: auto; }
  .hero--overflow .hero-grid { --gap: var(--space-7); }
  .hero--overflow { margin-top: var(--space-9); }
  .hero--overflow .hero-art {
    margin-inline: auto;
    margin-block: 0 calc(var(--space-8) * -1);
  }
  .row--3 { --cols: 1; }
  /* Stacked plan cards: every order button spans its card, so they match */
  .row--3 .plan-card .btn { align-self: stretch; max-width: 360px; }
  .row--footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Below 360px the viewport is too narrow for "Telecommunications" at the
   normal minimum, so step the H1 down rather than break the word. */
@media (max-width: 359px) {
  :root { --fs-h1: 1.5rem; }
}

@media (max-width: 720px) {
  .bio { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .bio__portrait { max-width: 200px; }
}

@media (max-width: 720px) {
  :root {
    --fs-body: var(--fs-body-sm);
    --section-y: var(--space-10);
  }
  .hero { padding: 56px 0; }
  .hero--flush,
  .hero--overflow { padding-bottom: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .row--2 { --cols: 1; }
  .plan-card .btn { align-self: stretch; max-width: 360px; }
  .card,
  .contact-form,
  .feature-panel { padding: 28px; }
  .row--footer { grid-template-columns: minmax(0, 1fr); }
  .header-actions .btn { display: none; }
  .logo img { height: 58px; }
}
