/* getawebsite.ie — house tokens per website-spec.md §6 */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-sub.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('fonts/libre-franklin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* colour */
  --ground:  #FBFAF8;
  --surface: #FFFFFF;
  --sunk:    #F3F1ED;
  --ink:     #1B2A3A;
  --muted:   #5A6675;
  --border:  #E4E0D9;
  --border-strong: #CFC9BF;
  --accent:       #B4530F;
  --accent-hover: #8F420C;
  --focus:        #B4530F;
  /* type */
  --font: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --size-body: 1.0625rem;
  --leading-body: 1.6;
  --size-h1: clamp(2.5rem, 5.6vw, 4rem);   --leading-h1: 1.06;
  --size-h2: clamp(1.75rem, 3.6vw, 2.5rem);   --leading-h2: 1.08;
  --size-h3: 1.125rem;
  --size-small: .875rem;
  --size-price: clamp(3rem, 7vw, 4.75rem);
  --size-numeral: clamp(1.75rem, 4vw, 2.5rem);
  /* space & shape */
  --space-section: clamp(5rem, 12vw, 9rem);
  --space-section-m: 4.5rem;
  --pad-faq: 1rem 1.25rem;
  --pad-cta-block: clamp(2.5rem, 6vw, 4rem);
  --measure: 62ch;
  --wrap: 64rem;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-soft: 0 1px 2px rgba(27, 42, 58, .05), 0 14px 36px -14px rgba(27, 42, 58, .16);
  --border-w: 1px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--size-body); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--ground); }

body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
#faq .prose { max-width: 48rem; margin-inline: auto; }
p, li, dd { max-width: var(--measure); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--ground); padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }


.alt-contact { font-size: var(--size-small); color: var(--muted); margin-top: .9rem; }
.alt-contact a { text-underline-offset: .2em; }
.anchor-line { text-align: center; max-width: none; margin: 0 0 1.5rem; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: var(--border-w) solid var(--border); }
.top-in { display: flex; align-items: center; gap: 1.4rem; min-height: 60px; }
.brand { font-weight: 700; letter-spacing: -.02em; text-decoration: none; margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.top nav a {
  font-size: var(--size-small); font-weight: 600; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.top nav a:hover { color: var(--accent); }
.top nav a[aria-current] { color: var(--accent); }
.menu-btn { display: none; }
.mobile-bar { display: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .7rem 1.5rem;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: var(--size-body); text-decoration: none;
  border-radius: var(--radius); border: 0;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-small { min-height: 44px; padding: .45rem 1.1rem; font-size: .9375rem; }
.btn-large { padding: .85rem 2rem; }
.btn-large.btn-ghost { padding: calc(.85rem - 2px) calc(2rem - 2px); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
  padding: calc(.7rem - 2px) calc(1.5rem - 2px);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn-ghost:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.cta-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.cta-centred { justify-content: center; }

/* ---- sections ---- */
main > section { padding-block: var(--space-section) calc(var(--space-section) * 1.12); scroll-margin-top: calc(60px + .75rem); }

h1 {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: var(--size-h1); line-height: var(--leading-h1);
  font-weight: 600; letter-spacing: -.015em; margin: 0 0 1.25rem; max-width: 26ch; text-wrap: balance;
}
h2 {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: var(--size-h2); line-height: var(--leading-h2);
  font-weight: 600; letter-spacing: -.01em; margin: 0 0 1.25rem; text-wrap: balance;
}
h3 { font-size: var(--size-h3); font-weight: 600; letter-spacing: -.01em; margin: 1.75rem 0 .5rem; }
p { margin: 0 0 .9rem; text-wrap: pretty; }

/* ---- hero ---- */
.hero {
  padding-block: clamp(4.5rem, 11vw, 8rem) var(--space-section);
  background:
    radial-gradient(110% 85% at 12% -5%, #F5EDE2 0%, rgba(245, 237, 226, 0) 58%),
    radial-gradient(70% 60% at 95% 10%, rgba(180, 83, 15, .09) 0%, rgba(180, 83, 15, 0) 60%);
}
.lede { color: var(--muted); font-size: 1.25rem; max-width: 56ch; }


/* ---- what you get ---- */
.includes { margin: 1.75rem 0 0; }
.includes dt { font-weight: 600; margin-top: 1.25rem; }
.includes dd { margin: .2rem 0 0; color: var(--muted); }

/* ---- pricing ---- */
#pricing { background: var(--sunk); padding-bottom: 0; }
.uline { white-space: nowrap; position: relative; }
.uline::after {
  content: ""; position: absolute; left: .02em; right: .02em; bottom: -.04em; height: .18em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'><path d='M4 9 Q 75 3 150 7 T 296 5' stroke='%23B4530F' stroke-width='5' fill='none' stroke-linecap='round'/></svg>") no-repeat 0 0 / 100% 100%;
}
.uline.drawn::after { animation: swash-draw 500ms cubic-bezier(.22,.61,.36,1) both; }
h2.swashed::after {
  content: ""; display: block; width: 4.5rem; height: .35rem; margin-top: .45rem;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'><path d='M4 9 Q 75 3 150 7 T 296 5' stroke='%23B4530F' stroke-width='6' fill='none' stroke-linecap='round'/></svg>") no-repeat 0 0 / 100% 100%;
}
h2.swashed.drawn::after { animation: swash-draw 450ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes swash-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .uline.drawn::after, h2.swashed.drawn::after { animation: none; }
  .mobile-bar { transition: none !important; }
}
#pricing h2.swashed::after { margin-inline: auto; }
.hero .cta-row { margin-top: 2.25rem; }
.quiet-line { color: var(--muted); }
.profile-card {
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem 2rem 1.5rem; margin-top: 1.5rem;
}
.profile-lead { font-weight: 600; font-size: 1.125rem; letter-spacing: -.005em; margin-bottom: .5rem; }
.profile-lead a { text-underline-offset: .2em; }
.profile-lead a:hover { color: var(--accent); }
.profile-bio { color: var(--muted); margin: 0 0 .5rem; }
.profile-card .sig { margin: .35rem 0 .9rem; }
.profile-bio a { text-underline-offset: .2em; }
.profile-bio a:hover { color: var(--accent); }
.sig { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; font-size: 1.1875rem; letter-spacing: 0; }
#how { background: var(--sunk); }
.check { list-style: none; padding: 0; margin: 1.75rem auto 0; max-width: 34rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem 1.5rem; text-align: left; }
.check li { padding-left: 1.3rem; position: relative; margin: 0; }
.check li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-line { font-weight: 600; margin: 1.5rem 0 0; }
.boundaries-list { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; }
#faq .boundaries-list { margin: 0 1.25rem 1.1rem 1.75rem; }
.boundaries-list li { padding-left: 1.3rem; position: relative; break-inside: avoid; }
.boundaries-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 2px; background: var(--border-strong); }
.price-panel {
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center; padding: clamp(2.25rem, 5.5vw, 3.5rem);
  max-width: 44rem; margin-inline: auto; margin-bottom: 2.5rem;
}
#pricing h2 { text-align: center; }

.price { font-family: var(--font-display); font-optical-sizing: auto; font-variant-numeric: tabular-nums; font-size: var(--size-price); font-weight: 600; letter-spacing: -.02em; line-height: 1; margin: 0 0 .5rem; }
.price .per { font-size: .35em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price .count.counting { display: inline-block; min-width: 2.7ch; text-align: right; }
.price-sub { color: var(--muted); margin: 0 0 .3rem; }
.price-terms { font-size: var(--size-small); color: var(--muted); margin: 0; }

/* ---- hero fan ---- */
.hero-fan { display: none; }
@media (min-width: 64rem) {
  .hero .hero-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: center; }
  .hero .hero-text h1 { font-size: clamp(2.5rem, 3.4vw, 3.3rem); }
  .hero-fan { display: block; position: relative; height: 30rem; }
  .fan-card {
    position: absolute; display: block; width: 76%;
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    background: var(--surface);
    transition: transform 200ms ease;
  }
  .fan-card .browser-frame { display: flex; }
  .fan-card img { display: block; width: 100%; height: auto; border: var(--border-w) solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
  .fan-1 { top: 2%; left: 0; transform: rotate(-4.5deg); z-index: 1; }
  .fan-2 { top: 26%; right: 0; transform: rotate(2.5deg); z-index: 2; }
  .fan-3 { top: 52%; left: 5%; transform: rotate(5.5deg); z-index: 3; }
  .fan-card:hover, .fan-card:focus-visible { transform: rotate(0deg) translateY(-6px); z-index: 4; }
}

/* ---- examples: theatre ---- */
.theatre { display: none; }
.js .theatre { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 1.75rem; margin-top: 1.75rem; align-items: start; }
.js #examples .demos { display: none; }
.stage { position: relative; }
.stage .browser-frame { border-radius: var(--radius) var(--radius) 0 0; }
.stage-link { display: block; }
.stage-img { display: block; width: 100%; height: auto; border: var(--border-w) solid var(--border); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.rail { list-style: none; padding: 0; margin: 0; max-width: none; display: flex; flex-direction: column; gap: .35rem; }
.rail li { margin: 0; }
.rail button {
  display: flex; align-items: baseline; gap: .8rem; width: 100%;
  background: none; border: 0; border-radius: var(--radius);
  padding: .5rem .75rem; min-height: 44px; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: .9375rem; color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease;
}
.rail button:hover { background: var(--sunk); color: var(--ink); }
.rail button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rail button[aria-pressed="true"] { background: var(--sunk); color: var(--ink); }
.rail-num { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; font-size: 1.125rem; color: var(--accent); }
.rail button[aria-pressed="true"] .rail-label { font-weight: 600; }
.pager { display: none; }

/* ---- guarantee band ---- */
#guarantee { background: var(--sunk); padding-top: calc(var(--space-section) * .35); }
.g-band { text-align: center; max-width: 52rem; }
.g-band h2 {
  font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.05; letter-spacing: -.015em;
  margin-bottom: 1.25rem; 
}
.g-band p { margin-inline: auto; }

/* ---- examples ---- */
.prose-inline { max-width: var(--measure); color: var(--muted); }
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.demos figure { margin: 0; }
.browser-frame {
  display: flex; gap: .35rem; align-items: center;
  background: var(--sunk); border: var(--border-w) solid var(--border); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; padding: .5rem .75rem;
}
.browser-frame i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.demos img {
  display: block; width: 100%; height: auto;
  border: var(--border-w) solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
}
.demos figcaption { font-size: var(--size-small); color: var(--muted); margin-top: .5rem; }
.demos a { display: block; }
.demos a:hover img, .demos a:focus-visible img { border-color: var(--ink); }

/* ---- guarantee ---- */

/* ---- steps ---- */
.step-more { margin-top: .65rem; }
.step-more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; font-weight: 600; font-size: .9375rem; color: var(--accent);
}
.step-more summary::-webkit-details-marker { display: none; }
.step-more summary::before {
  content: "+"; content: "+" / ""; font-weight: 700; font-size: 1.1rem; line-height: 1;
  transition: rotate 160ms ease;
}
.step-more[open] summary::before { rotate: 45deg; }
.step-more summary:hover { color: var(--accent-hover); }
.step-more summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.step-detail {
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem 1.4rem; margin-top: .6rem;
}
.step-detail .includes { margin-top: 0; }
.step-detail .includes dt:first-child { margin-top: 0; }
.step-group {
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 1.4rem 0 .2rem;
}
.step-group:first-child { margin-top: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; position: relative; }
.steps > li { counter-increment: step; position: relative; padding-left: 4.25rem; margin-bottom: 2.25rem; }
.steps > li::after {
  content: ""; position: absolute; left: 1.35rem; top: 2.7rem; bottom: -1.85rem;
  width: 2px; background: var(--border-strong);
}
.steps > li:last-child::after { display: none; }
.steps > li::before {
  content: "0" counter(step);
  content: "0" counter(step) / "";
  position: absolute; left: 0; top: -.25rem;
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: var(--size-numeral); font-weight: 600; letter-spacing: -.01em;
  color: var(--accent); line-height: 1;
}
.steps h3 { margin: 0 0 .3rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---- faq ---- */
#faq details { border-top: var(--border-w) solid var(--border); }
#faq details:last-of-type { border-bottom: var(--border-w) solid var(--border); }
#faq summary {
  cursor: pointer; list-style: none;
  transition: background-color 160ms ease;
  border-radius: var(--radius);
  padding: var(--pad-faq); padding-left: 1.75rem; position: relative;
  font-size: var(--size-h3); font-weight: 600; letter-spacing: -.01em;
  min-height: 44px;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::before {
  content: "+";
  content: "+" / ""; position: absolute; left: 0; top: calc(1rem + .8em); translate: 0 -50%;
  color: var(--accent); font-weight: 600; transition: rotate 160ms ease;
}
#faq summary:hover { background: var(--sunk); }
#faq details[open] summary::before { rotate: 45deg; }
#faq details > p { padding: 0 1.25rem 1.1rem 1.75rem; margin: 0; color: var(--muted); }

/* ---- final CTA ---- */
.final .final-in {
  background: var(--sunk); border: var(--border-w) solid var(--border); border-radius: var(--radius-lg);
  text-align: center; padding: var(--pad-cta-block);
}
.final p { margin-inline: auto; }

/* ---- footer ---- */
footer { border-top: var(--border-w) solid var(--border); padding-block: 1.75rem 2.75rem; font-size: .8125rem; color: var(--muted); }
footer p { margin: .35rem 0 0; max-width: none; }
footer .legal { margin-top: 1rem; }
.foot-tag { margin-top: .2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: .75rem; }
footer a { text-underline-offset: .2em; }
footer a:hover { color: var(--accent); }

/* ---- mobile ---- */
@media (max-width: 48rem) {
  main > section { padding-block: var(--space-section-m); }
  .hero { padding-block: 3.5rem var(--space-section-m); }
  .top-in { flex-wrap: wrap; }
  main > section { scroll-margin-top: calc(60px + .75rem); }
  .js .top .btn-small { display: none; }
  .js .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px;
    background: none; border: var(--border-w) solid var(--border); border-radius: var(--radius);
    padding: .4rem 1rem; font-family: var(--font); font-size: .9375rem; font-weight: 600;
    color: var(--ink); cursor: pointer;
  }
  .js .menu-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .js .top nav { display: none; }
  .js .top.nav-open nav {
    display: flex; flex-direction: column; order: 3; flex-basis: 100%;
    gap: 0; padding: .25rem 0 .6rem;
  }
  .js .top.nav-open nav a {
    width: 100%; min-height: 48px; font-size: 1rem;
    border-top: var(--border-w) solid var(--border);
  }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(251, 250, 248, .94);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: var(--border-w) solid var(--border);
  }
  .mobile-bar .btn { width: 100%; }
  .js .mobile-bar { transform: translateY(110%); visibility: hidden; transition: transform 240ms ease, visibility 0s linear 240ms; }
  .js .mobile-bar.shown { transform: none; visibility: visible; transition: transform 240ms ease; }
  .cta-row .btn { width: 100%; }
  .cta-row { gap: .75rem; }
  .check { grid-template-columns: 1fr 1fr; }
  .boundaries-list { columns: 1; }
  .steps > li { padding-left: 3.25rem; }
  .steps > li::after { left: 1rem; top: 2.3rem; bottom: -1.9rem; }
  .q-grid { grid-template-columns: 1fr; }
  .demos { grid-template-columns: 1fr; }
  .js .theatre { grid-template-columns: 1fr; gap: 0; }
  .rail { display: none; }
  .pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
  .pager-btn {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
    background: none; border: 2px solid var(--accent); color: var(--accent);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .pager-btn:active { background: var(--accent); color: #fff; }
  .pager-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .pager-label { margin: 0; text-align: center; font-size: .9375rem; max-width: none; }
  .pager-num { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; color: var(--accent); font-size: 1.125rem; margin-right: .35rem; }
  .pager-text { font-weight: 600; }
}
