/* ==========================================================================
   Shared stylesheet — three pages. No JS anywhere; interactivity is CSS only.
   Every colour, space, radius and face is a token on :root and is redefined
   for the dark scheme. No literal colour sits under text.
   ========================================================================== */

:root {
  /* ink + ground */
  --c-bg:            #FBFAF7;
  --c-surface:       #FFFFFF;
  --c-surface-2:     #F3F1EA;
  --c-ink:           #1F252E;
  --c-ink-2:         #4A5462;
  --c-line:          #E4DFD2;
  --c-line-strong:   #CFC6AC;

  /* brand */
  --c-gold:          #C69E04;
  --c-gold-2:        #D7B900;
  --c-gold-light:    #FFDF00;
  --c-gold-ink:      #6F5802;   /* gold-family colour that is safe under body text */
  --c-slate:         #485465;
  --c-slate-2:       #586575;
  --c-slate-ink:     #EDEFF2;   /* text on slate */

  /* the gold band */
  --c-band-1:        #D7B900;
  --c-band-2:        #C69E04;
  --c-band-ink:      #262C36;
  --c-band-ink-2:    #3A424E;
  --c-band-line:     rgba(38, 44, 54, 0.22);

  /* states */
  --c-focus:         #1F252E;
  --c-focus-halo:    #FFDF00;

  /* slot frame */
  --c-slot-bg:       #F3F1EA;
  --c-slot-stripe:   #E7E3D6;
  --c-slot-line:     #D6CFBC;
  --c-slot-ink:      #6B6553;

  /* device chrome */
  --c-device:        #3A4350;
  --c-device-2:      #2B323C;
  --c-device-edge:   #596475;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;

  /* radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 22px;
  --r-pill: 999px;

  /* type */
  --f-display: "Marcellus", "Goldoni", "Hoefler Text", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs:  0.8125rem;
  --t-s:   0.9375rem;
  --t-m:   1.0625rem;
  --t-l:   1.1875rem;
  --t-xl:  clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem);
  --t-2xl: clamp(1.75rem, 1.3rem + 2.1vw, 2.6rem);
  --t-3xl: clamp(2.3rem, 1.6rem + 3.4vw, 4rem);

  /* measure + gutters */
  --gutter: 16px;
  --max: 1200px;

  --shadow-1: 0 1px 2px rgba(31, 37, 46, 0.06), 0 6px 20px rgba(31, 37, 46, 0.06);
  --shadow-2: 0 2px 6px rgba(31, 37, 46, 0.10), 0 18px 48px rgba(31, 37, 46, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:          #12161C;
    --c-surface:     #1A1F27;
    --c-surface-2:   #222833;
    --c-ink:         #ECEAE3;
    --c-ink-2:       #AEB6C1;
    --c-line:        #2C333D;
    --c-line-strong: #414A57;

    --c-gold:        #D9B528;
    --c-gold-2:      #E4C544;
    --c-gold-light:  #FFE873;
    --c-gold-ink:    #E8C54B;
    --c-slate:       #222833;
    --c-slate-2:     #2B323D;
    --c-slate-ink:   #ECEAE3;

    --c-band-1:      #7E6504;
    --c-band-2:      #5E4B03;
    --c-band-ink:    #FFF7DD;
    --c-band-ink-2:  #EEE2BC;
    --c-band-line:   rgba(255, 247, 221, 0.26);

    --c-focus:       #FFE873;
    --c-focus-halo:  #12161C;

    --c-slot-bg:     #1E242D;
    --c-slot-stripe: #262D37;
    --c-slot-line:   #39424E;
    --c-slot-ink:    #9AA3AF;

    --c-device:      #39424F;
    --c-device-2:    #262D37;
    --c-device-edge: #4E5968;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.38);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.55), 0 18px 48px rgba(0, 0, 0, 0.5);
  }
}

/* --------------------------------------------------------------- resets -- */

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-m);
  line-height: 1.6;
  overflow-x: hidden;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--c-gold-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--c-ink); }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-1);
  box-shadow: 0 0 0 6px var(--c-focus-halo);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: var(--s-2);
  z-index: 50;
  transform: translateY(-200%);
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-2);
  padding: var(--s-2) var(--s-4);
  font-size: var(--t-s);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--c-ink);
  margin-right: auto;
}

/* The real logo, when the owner has uploaded one.

   Takes the gold tile's place rather than sitting inside it — GoudenPOS's
   mark is already a rounded gold tile, and nesting one in the other would
   double the frame. Square by default because that file is 1150², but the
   width follows the file so a wordmark-shaped logo is not squeezed. */
.brand__logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  flex: none;
  object-fit: contain;
  border-radius: var(--r-2);
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-2);
  background: linear-gradient(160deg, var(--c-gold-light), var(--c-gold));
  color: var(--c-band-ink);
  font-family: var(--f-display);
  font-size: var(--t-s);
  letter-spacing: 0.04em;
}

.brand__name {
  font-family: var(--f-display);
  font-size: var(--t-l);
  letter-spacing: 0.06em;
}

.nav { display: contents; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
}

.nav__item { display: block; }

.nav__link {
  display: inline-block;
  padding: var(--s-2) 0;
  font-size: var(--t-s);
  letter-spacing: 0.02em;
  color: var(--c-ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--c-ink); border-bottom-color: var(--c-gold); }

.nav__link--current {
  color: var(--c-ink);
  border-bottom-color: var(--c-gold);
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-pill);
  font-size: var(--t-s);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(160deg, var(--c-gold-2), var(--c-gold));
  color: var(--c-band-ink);
  border-color: var(--c-gold);
}
.btn--primary:hover {
  background: linear-gradient(160deg, var(--c-gold-light), var(--c-gold-2));
  color: var(--c-band-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.btn--ghost:hover { border-color: var(--c-gold); color: var(--c-ink); }

.btn--band {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-surface);
}
.btn--band:hover { background: var(--c-surface-2); color: var(--c-ink); }

/* ------------------------------------------------------- bracketed notes -- */

.note {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--c-ink-2);
  background: var(--c-surface-2);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
}

.note code { font-family: var(--f-mono); font-size: inherit; }

.note--band {
  color: var(--c-band-ink);
  background: transparent;
  border-color: var(--c-band-line);
}

/* ------------------------------------------------------------ image slot -- */

.slot {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background-color: var(--c-slot-bg);
  background-image: repeating-linear-gradient(
    135deg,
    var(--c-slot-stripe) 0 10px,
    var(--c-slot-bg) 10px 20px
  );
  border: 1px solid var(--c-slot-line);
  border-radius: var(--r-1);
  aspect-ratio: 16 / 10;
}

.slot__label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  line-height: 1.5;
  text-align: center;
  color: var(--c-slot-ink);
  padding: var(--s-2) var(--s-3);
  background: var(--c-slot-bg);
  border-radius: var(--r-1);
  max-width: 90%;
}

/* the filled state: release the box height and stop the squash */
.slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slot--desktop { aspect-ratio: 1440 / 900; }
.slot--phone   { aspect-ratio: 1080 / 2400; }
.slot--wide    { aspect-ratio: 16 / 9; }

/* -------------------------------------------------------- device mockups -- */

.mockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  align-items: end;
}

.mockup--trio {
  grid-template-columns: minmax(0, 1fr);
}

.mockup__monitor {
  border: 10px solid var(--c-device);
  border-bottom-width: 14px;
  border-radius: var(--r-3);
  background: var(--c-device-2);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.mockup__base {
  width: 34%;
  height: 10px;
  margin: 0 auto;
  border-radius: 0 0 var(--r-2) var(--r-2);
  background: var(--c-device-edge);
}

.mockup__pair {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s-4);
  align-items: end;
}

.mockup__tablet {
  border: 9px solid var(--c-device);
  border-radius: var(--r-3);
  background: var(--c-device-2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.mockup__phone {
  border: 8px solid var(--c-device);
  border-radius: var(--r-4);
  background: var(--c-device-2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  position: relative;
}

.mockup__notch {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-device);
}

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

.hero {
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--c-surface-2) 0%, transparent 60%),
    var(--c-bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  padding-block: var(--s-7) var(--s-8);
  align-items: center;
}

.hero__text { min-width: 0; }

.hero__media { min-width: 0; }

.hero__eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
  margin-bottom: var(--s-4);
}

.hero__title {
  font-size: var(--t-3xl);
  letter-spacing: 0.01em;
}

.hero__rule {
  width: 72px;
  height: 3px;
  border: 0;
  margin: var(--s-5) 0;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
}

.hero__lede {
  font-size: var(--t-l);
  color: var(--c-ink-2);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero__note { margin-top: var(--s-5); max-width: 52ch; }

.hero--sub .hero__inner { padding-block: var(--s-6) var(--s-7); }

/* --------------------------------------------------------- section heads -- */

.section {
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--c-line);
}

.section-head { max-width: 62ch; margin-bottom: var(--s-7); }

.section-head__eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
  margin-bottom: var(--s-3);
}

.section-head__title { font-size: var(--t-2xl); }

.section-head__lede {
  margin-top: var(--s-4);
  color: var(--c-ink-2);
}

.prose { max-width: 62ch; display: grid; gap: var(--s-4); }
.prose p { color: var(--c-ink-2); font-size: var(--t-l); }

.about { background: var(--c-bg); }

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
}

/* ----------------------------------------------------------- feature grid -- */

.features { background: var(--c-bg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-4);
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  align-content: start;
  box-shadow: var(--shadow-1);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: linear-gradient(160deg, var(--c-gold-light), var(--c-gold));
  color: var(--c-band-ink);
}

.icon { width: 24px; height: 24px; display: block; }

.feature-card__title { font-size: var(--t-xl); }

.feature-card__text {
  color: var(--c-ink-2);
  font-size: var(--t-s);
}

.features__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* ------------------------------------------------- feature list (p2 / p3) -- */

.featurelist { border-bottom: 1px solid var(--c-line); }

.featurelist__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  padding-block: var(--s-7);
}

.index {
  align-self: start;
  background: var(--c-slate);
  color: var(--c-slate-ink);
  border-radius: var(--r-3);
  padding: var(--s-5);
}

.index__title {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-slate-ink);
  margin-bottom: var(--s-4);
}

.index__list { display: grid; gap: var(--s-1); }

.index__link {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-2);
  border-left: 2px solid transparent;
  color: var(--c-slate-ink);
  font-size: var(--t-s);
  text-decoration: none;
}
.index__link:hover {
  background: var(--c-slate-2);
  border-left-color: var(--c-gold-light);
  color: var(--c-slate-ink);
}

.featurelist__items { display: grid; gap: var(--s-7); }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-7);
  border-top: 2px solid var(--c-gold);
  scroll-margin-top: var(--s-5);
}

.feature-row:first-child { padding-top: 0; border-top: 0; }

.feature-row__num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  color: var(--c-gold-ink);
  margin-bottom: var(--s-2);
}

.feature-row__title { font-size: var(--t-2xl); }

.feature-row__text {
  margin-top: var(--s-4);
  color: var(--c-ink-2);
  max-width: 60ch;
}

.feature-row__media { display: grid; gap: var(--s-3); }

.feature-row__media--phone { max-width: 280px; }

/* --------------------------------------------------------------- cta band -- */

.cta {
  background: var(--c-slate);
  color: var(--c-slate-ink);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-7);
}

.cta__text { flex: 1 1 320px; }
.cta__title { font-size: var(--t-xl); color: var(--c-slate-ink); }
.cta__lede { margin-top: var(--s-2); color: var(--c-slate-ink); font-size: var(--t-s); }

/* ---------------------------------------------------------- contact band -- */

.contact {
  background: linear-gradient(160deg, var(--c-band-1), var(--c-band-2));
  color: var(--c-band-ink);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  padding-block: var(--s-8);
}

.contact__head { max-width: 46ch; }
.contact__title { font-size: var(--t-2xl); color: var(--c-band-ink); }
.contact__lede { margin-top: var(--s-3); color: var(--c-band-ink-2); }

.contact-list {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.contact-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-band-line);
  color: var(--c-band-ink);
}

.contact-item__body {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}

.contact-item__label {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-band-ink-2);
}

.contact-item__value {
  display: block;
  font-size: var(--t-m);
  color: var(--c-band-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-item__value:hover { color: var(--c-band-ink); text-decoration: underline; }

/* form */

.form {
  background: var(--c-surface);
  border-radius: var(--r-3);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  box-shadow: var(--shadow-2);
}

.form__title { font-size: var(--t-xl); color: var(--c-ink); }

.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}

.form__field { display: grid; gap: var(--s-2); }

.form__label {
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3);
  font: inherit;
  font-size: var(--t-s);
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-2);
}

.form__textarea { min-height: 128px; resize: vertical; }

.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-color: var(--c-gold); }

.form__hp { display: none; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.form__hint {
  font-size: var(--t-xs);
  color: var(--c-ink-2);
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  padding-block: var(--s-6);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-right: auto;
  font-family: var(--f-display);
  letter-spacing: 0.06em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

.site-footer__link {
  font-size: var(--t-s);
  color: var(--c-ink-2);
  text-decoration: none;
}
.site-footer__link:hover { color: var(--c-ink); text-decoration: underline; }

.site-footer__legal {
  width: 100%;
  font-size: var(--t-xs);
  color: var(--c-ink-2);
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-4);
}

/* ------------------------------------------------------------ breakpoints -- */

@media (min-width: 700px) {
  :root { --gutter: 32px; }

  .mockup--trio { grid-template-columns: minmax(0, 1fr); }
  .contact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form__row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: var(--s-6);
  }
  .feature-row__media--phone { max-width: 240px; justify-self: center; }
}

@media (min-width: 1000px) {
  :root { --gutter: 40px; }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--s-8);
    padding-block: var(--s-9) var(--s-9);
  }

  .about__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8); }

  .contact__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--s-8);
  }
  .contact-list { grid-template-columns: minmax(0, 1fr); }

  .featurelist__inner {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--s-8);
  }

  .index {
    position: sticky;
    top: var(--s-5);
  }

  .form { padding: var(--s-6); }
}

@media print {
  .skip-link, .nav, .hero__actions, .features__actions { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
