/* Oliver Software Studio website */

:root {
  --brand: #0F4C3A;
  --brand-dark: #0A3328;
  --brand-deep: #0B2A22;
  --accent: #E3A21A;
  --ink: #13201C;
  --text: #3D4D47;
  --muted: #55655F;
  --line: #D5E0DB;
  --line-soft: #E3EAE7;
  --tint: #F2F6F4;
  --tint-2: #EEF4F1;
  --ok-bg: #DCEBE5;
  --ok-ink: #0F4C3A;
  --warn-bg: #FBEFD2;
  --warn-ink: #6E4A00;
  --bad-bg: #F8E1DE;
  --bad-ink: #8E2A1E;
  --neutral-bg: #F1F3F2;
  --neutral-ink: #4A5A54;
  --radius: 16px;
  /* Dark-green bands (rota, prices). #E3A21A is for fills only; small gold text uses --gold-soft. */
  --band-dark: radial-gradient(900px 400px at 15% 0%, #145C46 0%, transparent 60%), linear-gradient(180deg, #0F4C3A 0%, #0B2A22 100%);
  --shadow-on-dark: 0 18px 40px -26px rgba(0, 0, 0, 0.6);
  --gold-soft: #F2C14E;
  --mint: #CFE3DA;
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins, even on elements that set their own display. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink); }
h1 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.lead { font-size: 20px; color: var(--text); max-width: 600px; }
.lead-sm { font-size: 18px; color: var(--text); }
.eyebrow { font-weight: 600; color: var(--brand); letter-spacing: 0.04em; font-size: 15px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* The contact address is plain text, not a link; one click selects all of it for copying. */
.email-text { font-weight: 600; color: inherit; text-decoration: none; -webkit-user-select: all; user-select: all; }
@media (max-width: 400px) { .email-text { word-break: break-all; } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 10px; padding: 11px 20px; min-height: 44px; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #C9D6D0; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-small { padding: 9px 16px; min-height: 40px; }
.btn-large { padding: 14px 24px; min-height: 50px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* --- Header ---------------------------------------------------------------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink); }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: var(--muted); }
.mark-bar { fill: var(--brand); }
.mark-accent { fill: var(--accent); }
.brand--light .brand-name { color: #fff; }
.brand--light .brand-sub { color: #A9C8BC; }
.brand--light .mark-bar { fill: #fff; }

/* Seven links and a button: one line from 1140 px, the menu button below that. */
.site-nav { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.site-nav a:not(.btn):hover { color: var(--brand); }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: #fff; border: 1px solid #C9D6D0; border-radius: 10px; padding: 8px 14px; min-height: 44px; cursor: pointer; }

@media (max-width: 1139px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 0 0 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; border-top: 1px solid var(--line-soft); }
  .site-nav .btn { margin-top: 8px; }
}

/* --- Hero: "Pick your sector" mosaic on soft green -------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 20%, #CFE8DA 0%, transparent 60%), linear-gradient(180deg, #F3F9F5 0%, #E4F1E9 100%);
}
.hero::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(227, 162, 26, 0.10); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 80px; }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.05; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.terms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.terms li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); color: var(--text); }

.mosaic-wrap { position: relative; min-width: 0; }
.mosaic-pick { position: absolute; top: -18px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mosaic {
  list-style: none; margin: 0; padding: 30px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(15, 76, 58, 0.12); border-radius: 28px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mosaic > li { min-width: 0; }
.mosaic > li:nth-child(3n+2) { transform: translateY(14px); }
.mosaic-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; background: #fff; border-radius: 20px; color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px -16px rgba(15, 76, 58, 0.45); transition: transform .2s ease; }
.mosaic-tile:hover, .mosaic-tile:focus-visible { transform: translateY(-4px); color: var(--ink); }
.mosaic-tile .app-icon { width: 68px; height: 68px; border-radius: 19px; overflow: hidden; }
.mosaic-tile .app-icon--aitfoirne img { width: 46px; height: auto; }
.mosaic-label { font-size: 15px; font-weight: 600; text-align: center; }
.mosaic-live { position: absolute; top: -9px; right: -6px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.mosaic-available { position: absolute; top: -9px; right: -6px; z-index: 1; padding: 2px 7px; border-radius: 999px; background: #fff; border: 1.5px solid var(--brand); color: var(--brand); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
/* The 9th tile, "Create your own": a dashed "+" in place of an app icon, as on /build/. */
.mosaic-plus { width: 68px; height: 68px; border-radius: 19px; border: 2px dashed #9AAAA4; display: flex; align-items: center; justify-content: center; color: var(--brand); font-family: var(--font-display); font-size: 34px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .mosaic-tile { transition: none; } }
/* The page's one load animation: the tiles fade and scale in, 60 ms apart. */
@media (prefers-reduced-motion: no-preference) {
  .mosaic-tile { animation: mosaic-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .mosaic > li:nth-child(2) { --i: 1; }
  .mosaic > li:nth-child(3) { --i: 2; }
  .mosaic > li:nth-child(4) { --i: 3; }
  .mosaic > li:nth-child(5) { --i: 4; }
  .mosaic > li:nth-child(6) { --i: 5; }
  .mosaic > li:nth-child(7) { --i: 6; }
  .mosaic > li:nth-child(8) { --i: 7; }
  .mosaic > li:nth-child(9) { --i: 8; }
  @keyframes mosaic-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .mosaic { gap: 10px; padding: 22px 14px; }
  .mosaic-tile { padding: 14px 4px 10px; }
  .mosaic-tile .app-icon, .mosaic-plus { width: 54px; height: 54px; border-radius: 15px; }
  .mosaic-plus { font-size: 28px; }
  .mosaic-tile .app-icon--aitfoirne img { width: 36px; }
  .mosaic-label { font-size: 13.5px; }
  .mosaic-available { padding: 1px 6px; font-size: 10.5px; }
}

.icon { width: 22px; height: 22px; }
.icon-tile { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--tint-2); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.icon-tile .icon { width: 20px; height: 20px; }
.icon-tile--lg { width: 48px; height: 48px; border-radius: 14px; }
.icon-tile--lg .icon { width: 26px; height: 26px; }

/* --- App icons and themes ---------------------------------------------------------- */

/* The SVG app icons carry their own rounded background; only ÁitFoirne sits on a white tile. */
.app-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 25%; display: inline-flex; align-items: center; justify-content: center; }
.app-icon img { width: 100%; height: 100%; }
.app-icon--aitfoirne { background: #fff; border: 1px solid var(--line); }
.app-icon--aitfoirne img { width: 80%; height: 80%; object-fit: contain; }

.app-theme--aitfoirne { --app: #145DA0; --app-tint: #E4EDF7; }
.app-theme--ostan { --app: #1D6A8F; --app-tint: #E5F3FA; }
.app-theme--bialann { --app: #A94E1C; --app-tint: #FCEDE3; }
.app-theme--siopa { --app: #B03A4F; --app-tint: #FCE8EC; }
.app-theme--feirm { --app: #4A7524; --app-tint: #EDF5E3; }
.app-theme--naiolann { --app: #6549AE; --app-tint: #F0EBFA; }
.app-theme--slandail { --app: #3E4F75; --app-tint: #E8ECF3; }
.app-theme--cursa { --app: #13745A; --app-tint: #E2F5EE; }
.app-theme--foireann { --app: #0F4C3A; --app-tint: #E4F0EA; }

/* --- Sections ---------------------------------------------------------------- */

.section { padding: 88px 0; }
.section--line { border-top: 1px solid var(--line-soft); }
.section--tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin-bottom: 36px; }
@media (max-width: 760px) { .section { padding: 60px 0; } }

/* --- Why it matters -------------------------------------------------------- */

.why-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.why-employer { flex: 1 1 420px; min-width: 0; background: var(--tint); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.law-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.law-list li { display: flex; gap: 12px; align-items: flex-start; }
.law-check { color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.law-check .icon { stroke-width: 2.6; }
.law-text { display: block; }
.law-ref { display: block; font-size: 14px; color: var(--muted); }
.why-sectors { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
/* Five cards with no empty cell: the first across both columns, then two rows of two; one column on phones. */
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rule:first-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .rule-grid { grid-template-columns: minmax(0, 1fr); } }
.rule-head { display: flex; align-items: center; gap: 10px; }
.rule-head > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.rule-head .app-icon { width: 34px; height: 34px; }
.rule-text { color: var(--text); font-size: 16px; }

.rota-callout { margin-top: 24px; background: var(--brand); color: #D6E7E0; border-radius: 20px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.rota-callout .mark { width: 46px; height: 46px; flex: 0 0 auto; }
.rota-callout .mark-bar { fill: #fff; }
.rota-callout > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rota-callout-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #fff; }

.sources { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.sources-title { font-weight: 600; font-size: 15px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.source-badge {
  display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.source-badge:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(15, 76, 58, 0.12); }
.source-publisher { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.source-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); font-size: 15px; }
.source-title .icon { width: 14px; height: 14px; color: var(--brand); }

/* --- The rota that builds itself (home page band) ------------------------------------ */

/* Green band with white stage cards. Gold only for the big numbers, badges, chevrons, the
   Generate block and check marks; never for body text on white. The stage visuals are decorative. */
.rota-band { padding: 76px 0; color: #fff; background: var(--band-dark); }
.rota-band h2, .rota-band h3 { color: #fff; }
.rota-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 28px 40px; margin-bottom: 40px; }
.rota-top h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.08; }
.rota-lead { margin-top: 12px; max-width: 560px; color: #CFE3DA; font-size: 19px; }
.rota-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.rota-stats li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.rota-stat-value { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--accent); }
.rota-stat-label { color: #DDEBE5; font-size: 15px; }
.rota-caption { margin-top: 10px; color: #B5D3C7; font-size: 13.5px; }

.rota-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 18px; }
.rota-stage { position: relative; min-width: 0; padding: 22px 20px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow-on-dark); }
.rota-band .rota-stage h3 { margin: 12px 0 4px; color: var(--ink); font-size: 19px; }
.rota-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--brand-deep); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.rota-sub { margin-bottom: 12px; color: var(--muted); font-size: 14.5px; }
.rota-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

.rota-setup { list-style: none; margin: 0; padding: 0; }
.rota-setup li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px solid #EEF2F0; }
.rota-setup li:first-child { border-top: 0; }
.rota-ic { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; background: #E8F2ED; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.rota-ic .icon { width: 16px; height: 16px; }
.rota-setup strong { display: block; font-size: 15px; }
.rota-setup-text { display: block; color: var(--muted); font-size: 13.5px; }
.rota-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.rota-chip { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.rota-chip--early { background: #DCEBFB; color: #1B4F8A; }
.rota-chip--late { background: #FDE7D3; color: #8A4310; }
.rota-chip--night { background: #E6E1F8; color: #4A3A92; }

.rota-generate { display: block; }
.rota-generate-block { display: block; margin-top: 6px; padding: 14px 10px; border-radius: 14px; background: var(--accent); color: var(--brand-deep); font-family: var(--font-display); font-size: 18px; font-weight: 700; text-align: center; box-shadow: 0 10px 22px -12px rgba(227, 162, 26, 0.9); }
.rota-generate-block small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.rota-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 14px; }
.rota-cells span { height: 16px; border-radius: 4px; background: #DCEBFB; }
.rota-cells span:nth-child(3n) { background: #FDE7D3; }
.rota-cells span:nth-child(5n) { background: #E6E1F8; }
.rota-cells span:nth-child(7n) { background: #F1F3F2; }

.rota-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.rota-pill { padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.rota-pill--draft { background: #F1F3F2; color: #4A5A54; border: 1px dashed #9AAAA4; }
.rota-pill--published { background: var(--ok-bg); color: var(--brand); }
.rota-pill-arrow { color: var(--accent); font-weight: 700; }

.rota-requests { list-style: none; margin: 0; padding: 0; }
.rota-requests li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #EEF2F0; font-size: 14.5px; }
.rota-requests li:first-child { border-top: 0; }
.rota-approve { flex: 0 0 auto; padding: 3px 9px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; }

.rota-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.rota-panel { min-width: 0; padding: 20px 22px; border-radius: 20px; }
.rota-panel h3 { margin-bottom: 8px; font-size: 17px; }
.rota-panel ul { list-style: none; margin: 0; padding: 0; }
.rota-panel li { position: relative; padding: 5px 0 5px 26px; color: #E7F1EC; }
.rota-panel--before { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.rota-panel--before li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px;
  background: linear-gradient(45deg, transparent 40%, #C9A9A0 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, #C9A9A0 40% 60%, transparent 60%);
}
.rota-panel--after { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); }
.rota-panel--after li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

@media (min-width: 1001px) {
  /* Small gold chevrons between the stage cards. */
  .rota-stage + .rota-stage::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 10px; border-top: 2.5px solid var(--accent); border-right: 2.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
}
@media (max-width: 1000px) {
  .rota-top { grid-template-columns: minmax(0, 1fr); }
  .rota-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rota-band { padding: 52px 0; }
  .rota-stages, .rota-compare { grid-template-columns: minmax(0, 1fr); }
  .rota-stats { gap: 10px; }
  .rota-stats li { padding: 16px; }
  .rota-stat-value { font-size: 32px; }
}

/* --- Features: what every app does (home and app pages); no prices here ----------- */

.features-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 40px; margin-bottom: 36px; }
.features-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.features-intro { color: var(--text); font-size: 19px; }
.phone-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--brand); font-size: 16px; font-weight: 600; }
.phone-line::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--brand); }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature-group { min-width: 0; padding: 26px 22px 28px 0; border-bottom: 1px solid var(--line); }
.feature-group:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.feature-badge { width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--tint-2); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.feature-badge .icon { width: 22px; height: 22px; }
.feature-group h3 { font-size: 19px; }
.feature-summary { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.feature-items { list-style: none; margin: 0; padding: 0; }
.feature-items li { position: relative; padding: 4px 0 4px 22px; color: var(--text); font-size: 15.5px; }
.feature-items li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
/* "Foireann" (the core app), "Module", or "Included" on ÁitFoirne's page. */
.feature-tag { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: 1px; white-space: nowrap; }
.feature-tag--foireann { background: var(--brand); color: #fff; }
.feature-tag--module { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.feature-tag--included { background: var(--ok-bg); color: var(--ok-ink); }
.features-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 30px; }
.features-next-title { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
@media (max-width: 960px) {
  .features-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-group:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .feature-group:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-group:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* --- Pills, chips -------------------------------------------------------- */

.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill--warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill--bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill--neutral { background: var(--neutral-bg); color: var(--neutral-ink); }
.pill--accent { background: var(--accent); color: var(--ink); }

/* --- App cards (home page) ----------------------------------------------------- */

.app-meaning { font-style: italic; }
.btn-app { background: var(--app, var(--brand)); color: #fff; }
.btn-app:hover { color: #fff; box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.16); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--app, var(--brand)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--app, var(--brand)); text-decoration-thickness: 2px; }
.pill--live, .pill--available, .pill--beta { background: var(--brand); color: #fff; box-shadow: inset 0 0 0 1px var(--brand); }
.pill--development { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pill--planned, .pill--early_access { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px #F3DFA9; }

.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.sector-heading { font-size: clamp(24px, 2.4vw, 28px); }
.swipe-hint { display: none; color: var(--muted); font-size: 14px; }

.app-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-cards:focus-visible { outline-offset: 6px; border-radius: 8px; }
.app-card {
  --icon-size: 72px;
  position: relative; min-width: 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  container-type: inline-size;
  scroll-margin-top: 96px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:focus-within { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 32, 28, 0.10); }
@media (hover: hover) {
  .app-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 32, 28, 0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
  .app-card:hover, .app-card:focus-within { transform: none; }
}

.app-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 22px 22px 18px; background: var(--app-tint); }
.app-card-top .app-icon { width: var(--icon-size); height: var(--icon-size); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 16px -8px var(--app); }
.app-card-top .app-icon--aitfoirne img { width: 70%; height: auto; }
.app-card-title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.app-card .app-meaning { margin-top: 2px; color: var(--app); font-size: 15px; }
.app-card-status { margin-left: auto; align-self: flex-start; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.app-card-status .pill { font-size: 12.5px; }
/* Foireann, the core app: the same tint and green border as its start card on /build/. */
.app-card--core { border: 1.5px solid var(--brand); background: var(--tint); }
.app-card-eyebrow { margin-bottom: 2px; color: var(--brand); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
/* The 9th card, "Not sure? Describe what you need": dashed, like its tile on /build/. The whole card is the link. */
.app-card--describe { justify-content: center; border: 2px dashed #9AAAA4; }
.app-card--describe .app-card-top { flex-wrap: nowrap; background: transparent; }
.app-card-plus { flex: 0 0 auto; width: var(--icon-size); height: var(--icon-size); border-radius: 20px; border: 2px dashed #9AAAA4; display: flex; align-items: center; justify-content: center; color: var(--brand); font-family: var(--font-display); font-size: 34px; line-height: 1; }
.app-card-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.app-card-link::after { content: ""; position: absolute; inset: 0; }
.app-card-link:hover { color: var(--brand); }
.app-card-text { padding: 0 22px 22px; color: var(--text); }
/* Narrow cards (phones, and three columns on smaller desktops): the status moves under the name. */
@container (max-width: 369px) {
  .app-card-status { order: 3; flex: 0 0 100%; margin: -4px 0 0; padding-left: calc(var(--icon-size) + 16px); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
}

.app-card-sector { padding: 16px 22px 0; color: var(--text); font-weight: 600; }
.app-card-label { padding: 12px 22px 6px; color: var(--muted); font-size: 13.5px; }
.app-card-module { list-style: none; margin: 0; padding: 0 22px; }
.app-card-module li { position: relative; padding: 5px 0 5px 26px; color: var(--ink); }
.app-card-module li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--app); border-bottom: 2.5px solid var(--app); transform: rotate(-45deg); }
.app-card-cta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 20px 22px 22px; }
.app-card-cta .btn { min-height: 44px; padding: 0 18px; border-radius: 12px; }

/* Two columns: the 9th card takes the whole last row, so no cell is left empty. */
@media (max-width: 900px) {
  .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card--describe { grid-column: 1 / -1; }
}
/* Phones: a swipe carousel that bleeds to the screen edge. */
@media (max-width: 640px) {
  .shelf-head { display: block; }
  .swipe-hint { display: block; margin-top: 6px; }
  .app-cards {
    display: flex; gap: 14px; margin: 0 -24px; padding: 4px 24px 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px; scrollbar-width: none;
  }
  .app-cards::-webkit-scrollbar { display: none; }
  .app-cards:focus-visible { outline-offset: -3px; border-radius: 0; }
  .app-card { --icon-size: 64px; flex: 0 0 84%; scroll-snap-align: start; }
}

/* --- App page: module, price band ----------------------------------------------- */

.module-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 900px) { .module-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.module-cards { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.module-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 2px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.module-card .icon-tile { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--app-tint); color: var(--app); }
.module-card h3 { font-size: 18px; }
.module-card p { color: var(--text); font-size: 16px; }
.module-card--title-only { align-items: center; }
.module-card--title-only .icon-tile { grid-row: auto; }
.module-visual { min-width: 0; background: var(--app-tint); border-radius: 20px; padding: 28px; }
@media (max-width: 760px) { .module-visual { padding: 16px; } }

.price-band { padding: 36px 0; border-top: 1px solid var(--line-soft); }
.price-band-inner { display: flex; align-items: center; gap: 16px; }
.price-band .icon-tile { background: var(--app-tint); color: var(--app); }
.price-line { min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 22px); line-height: 1.35; color: var(--ink); }

/* --- Example screens ------------------------------------------------------- */

.screen { background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(16, 32, 28, 0.13); overflow: hidden; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--app); color: #fff; font-weight: 600; }
.screen-app { font-size: 13px; font-weight: 400; opacity: 0.85; }
.screen-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kv > span:first-child { color: var(--text); }
.kv--total { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.kv--total > span:first-child { font-weight: 600; color: var(--ink); }
.kv-right { display: flex; align-items: center; gap: 10px; }
.big { font-family: var(--font-display); font-size: 22px; color: var(--app); }
.stack { display: flex; flex-direction: column; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--neutral-bg); color: var(--text); }
.chip--active { background: var(--app); color: #fff; }
.screen-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
@media (max-width: 480px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.room { border-radius: 10px; padding: 8px; display: flex; flex-direction: column; line-height: 1.25; }
.room strong { font-size: 16px; }
.room--clean { background: var(--ok-bg); color: var(--ok-ink); }
.room--busy { background: var(--warn-bg); color: var(--warn-ink); }
.room--out { background: #E6EBF3; color: #24406E; }
.room--dnd { background: var(--neutral-bg); color: var(--neutral-ink); }
.check-item { display: flex; align-items: center; gap: 10px; }
.box { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #B9C9C2; }
.box--done { border-color: var(--app); background: var(--app); position: relative; }
.box--done::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.scroll-x { overflow-x: auto; }
.roster { min-width: 420px; display: grid; grid-template-columns: 76px repeat(14, minmax(0, 1fr)); gap: 4px; align-items: center; font-size: 12px; text-align: center; }
.day-num { color: var(--muted); }
.roster-name { text-align: left; font-size: 14px; font-weight: 600; }
.day { height: 22px; border-radius: 5px; }
.day--on { background: var(--app); }
.day--relief { background: var(--accent); }
.day--off { border: 1px dashed #B9C9C2; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; }
.swatch--on { background: var(--app); }
.swatch--relief { background: var(--accent); }
.swatch--off { border: 1px dashed #B9C9C2; }
.week { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 4px; align-items: center; text-align: center; }
.week-day { color: var(--muted); font-size: 11px; font-weight: 600; }
.week-name { text-align: left; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift { height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.shift--early { background: var(--app); color: #fff; }
.shift--late { background: var(--accent); color: var(--ink); }
.shift--off { border: 1px dashed #B9C9C2; color: var(--muted); }

/* --- Cards, prices ------------------------------------------------------------ */

.card-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--text); }
/* Home: the small "We also work with you" row after the "Create your own app" band. */
.work-with-you { padding: 56px 0; }
.work-with-you-title { margin-bottom: 20px; font-size: 22px; }
.work-with-you .card h4 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .work-with-you { padding: 44px 0; } }

/* Prices sit in the same dark-green band as the rota section. The heading comes from home.html and the
   rest from partials/prices.html; the column layout lets the gold eyebrow show above the heading. */
#prices { border-top: 0; background: var(--band-dark); color: #fff; }
#prices > .container { display: flex; flex-direction: column; }
#prices .section-head { margin-bottom: 0; }
#prices .section-head h2 { color: #fff; }
#prices .lead-sm { color: var(--mint); }
.prices-eyebrow { order: -1; align-self: flex-start; margin-bottom: 12px; }
.prices-lead { max-width: 800px; margin: 12px 0 36px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow-on-dark); }
.plan--featured { box-shadow: 0 0 0 3px var(--accent), 0 24px 50px -24px rgba(0, 0, 0, 0.7); transform: translateY(-8px); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 20px; }
.plan--featured .pill--accent { position: absolute; top: -13px; right: 20px; padding: 4px 12px; background: var(--accent); color: var(--brand-deep); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.plan-price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.amount { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--brand); }
.per { color: var(--muted); font-size: 14.5px; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid #EEF2F0; color: var(--text); display: flex; flex-direction: column; gap: 4px; font-size: 15.5px; }
.plan li { position: relative; padding: 3px 0 3px 26px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 11px; height: 6px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.plan--featured li::before { border-color: var(--accent); }
.plan-sub { color: var(--text); font-size: 15px; font-weight: 600; }
.plan-eyebrow { margin-bottom: -8px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.plan-worth { color: var(--ink); font-weight: 700; }
.plan-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 26px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: #E7F1EC; font-size: 15.5px; }
.plan-strip p { flex: 1 1 420px; min-width: 0; }
.plan-strip strong { color: #fff; }
.plan-cta { flex: 0 0 auto; }
.price-aitfoirne { margin-top: 14px; max-width: 900px; color: #B5D3C7; font-size: 14.5px; }
.price-examples { list-style: none; margin: 24px 0 0; padding: 16px 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.price-examples li { min-width: 0; }
.price-examples strong { display: block; color: var(--gold-soft); font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.price-examples span { color: var(--mint); font-size: 14.5px; }
.price-terms { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; max-width: 900px; color: var(--mint); font-size: 15px; }
.price-terms p { position: relative; padding-left: 20px; }
.price-terms p::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* The cards stay in one row until they would be too narrow, then stack. */
@media (max-width: 960px) {
  .price-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan--featured { transform: none; margin: 10px 0; }
}
@media (max-width: 640px) {
  .price-examples { grid-template-columns: minmax(0, 1fr); }
}

/* --- Trust band, about ------------------------------------------------------ */

.band { background: var(--brand); color: #D6E7E0; padding: 80px 0; }
.band h2 { color: #fff; margin-bottom: 32px; }
.band h3 { color: #fff; margin-bottom: 8px; }
.band-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.band-grid > div { flex: 1 1 280px; min-width: 0; }

.about { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.about-photo { flex: 0 0 auto; }
.about-photo img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--tint); }
@media (max-width: 640px) { .about-photo img { width: 120px; height: 120px; } }

/* --- Security and your data ------------------------------------------------------ */

.security-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
@media (max-width: 900px) { .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .security-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.security-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 16px; }
.security-badge { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(180deg, #145C46 0%, #0B2A22 100%); color: var(--gold-soft); display: inline-flex; align-items: center; justify-content: center; }
.security-badge .icon { width: 24px; height: 24px; }
.security-item h3 { font-size: 18px; margin-bottom: 4px; }
.security-item p { color: var(--text); font-size: 16px; }

/* --- Projects page -------------------------------------------------------------- */

.page-hero { background: linear-gradient(180deg, #F3F9F5 0%, #E4F1E9 100%); padding: 56px 0 40px; }
.page-hero .container { display: flex; flex-direction: column; gap: 10px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 48px); }
.page-hero .lead { max-width: 640px; }
.project { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; gap: 40px; }
.project-shot { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 50px -30px rgba(15, 76, 58, 0.5); }
.project-shot img { width: 100%; height: auto; }
.project-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.project-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: #FBEFD2; color: #7A5300; font-size: 13.5px; font-weight: 600; }
.project-body h2 { font-size: 30px; }
.project-body p { margin-top: 12px; color: var(--text); }
.project-features { list-style: none; margin: 16px 0 0; padding: 0; }
.project-features li { position: relative; padding: 5px 0 5px 24px; }
.project-features li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.project-body .btn { margin-top: 22px; }
@media (max-width: 900px) { .project { grid-template-columns: minmax(0, 1fr); } }
/* Between two projects: the section spacing (88 px; 60 px on phones), with the thin line in the middle of it. */
.project + .project { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line-soft); }
@media (max-width: 760px) { .project + .project { margin-top: 30px; padding-top: 30px; } }
.project-media { min-width: 0; }
/* A project's text column: space above each sub-heading, a small gap below it. */
.project-subhead { margin: 28px 0 8px; font-size: 19px; }
.project-body .project-subhead + p, .project-subhead + .project-features, .project-subhead + .project-links { margin-top: 0; }
.project-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.project-links a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.project-body .project-note { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
/* The price: one box in the note style (tint, line, rounded), the price itself first and larger. */
.project-price { margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); }
.project-body .project-price p { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.project-body .project-price .project-price-amount { margin: 0 0 4px; color: var(--brand); font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.project-body .project-actions .btn { margin-top: 0; }
/* A project's key numbers: a row of small tiles, the number large and the label small; two by two on phones. */
.project-stats { align-self: stretch; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.project-stats li { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.project-stat-value { color: var(--brand); font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.project-stat-label { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
@media (max-width: 600px) { .project-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* "Built with Django and Python", a small line under the tag. */
.project-body .project-built { margin: -2px 0 10px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
/* After the last project: a tinted band with the question and its button, side by side; stacked on phones. */
.projects-next { padding: 64px 0; }
.projects-next .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }

/* A project's gallery: a strip that scrolls sideways and snaps to each image (swipe on phones). site.js adds
   previous / next buttons. Every image keeps its shape: a fixed height and width: auto, never both forced.
   Laptop screens sit in a light frame like the main image; phone screens in a dark phone frame at a fixed
   shape, cut from the top, so a tall one stays short. */
.gallery { margin-top: 20px; }
.gallery-strip { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery-strip:focus-visible { outline-offset: 4px; }
.gallery-list { list-style: none; margin: 0; padding: 0 0 16px; display: flex; gap: 14px; }
.gallery-item { flex: 0 0 auto; scroll-snap-align: start; }
.gallery-item img { display: block; width: auto; max-width: none; height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 28px -20px rgba(15, 76, 58, 0.5); }
.gallery-item--phone img { aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border: 5px solid var(--ink); border-radius: 22px; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.gallery-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #C9D6D0; border-radius: 50%; background: #fff; color: var(--brand); font-size: 26px; line-height: 1; cursor: pointer; }
.gallery-btn:hover:not(:disabled) { border-color: var(--brand); }
.gallery-btn:disabled { opacity: 0.4; cursor: default; }
@media (prefers-reduced-motion: no-preference) { .gallery-strip { scroll-behavior: smooth; } }
@media (max-width: 600px) { .gallery-item img { height: 170px; } }

/* --- Back to top -------------------------------------------------------------------- */

/* Below the sticky header (z-index 20), so it never covers the mobile menu. site.js adds .is-visible. */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 15;
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(15, 76, 58, 0.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease; }
.to-top:hover { background: var(--brand-dark); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .to-top { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-visible { transition: none; } }
.about-text { flex: 1 1 460px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 14px; font-size: 18px; color: var(--text); }

/* --- Forms -------------------------------------------------------------------- */

.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.enquiry-form { flex: 1 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row > .field { flex: 1 1 220px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field-input { width: 100%; padding: 12px 14px; border: 1px solid #B9C9C2; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); min-height: 48px; }
textarea.field-input { resize: vertical; min-height: 110px; }
.field-input:focus { border-color: var(--brand); outline: 3px solid rgba(15, 76, 58, 0.18); outline-offset: 0; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check label { font-weight: 400; color: var(--text); }
.check-input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.field-error { color: var(--bad-ink); font-size: 14px; font-weight: 600; }
.form-alert { background: var(--bad-bg); color: var(--bad-ink); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.calc { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; background: var(--tint); border-radius: 18px; padding: 24px; margin-bottom: 12px; }
.calc .field { flex: 1 1 240px; min-width: 0; }
.calc-result { flex: 1 1 100%; display: block; font-size: 18px; color: var(--ink); background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.calc-result strong { font-family: var(--font-display); font-size: 24px; color: var(--brand); }

/* --- Small pages ------------------------------------------------------------- */

.notice { background: var(--tint); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.notice h1 { font-size: clamp(28px, 3.4vw, 40px); }
.prose { display: flex; flex-direction: column; gap: 14px; color: var(--text); font-size: 18px; }
.prose h1 { color: var(--ink); }
.prose h2 { font-size: 24px; margin-top: 18px; }

.app-hero { background: var(--app-tint); padding: 56px 0 64px; }
.app-hero .container { display: flex; flex-direction: column; gap: 20px; }
.breadcrumb { font-size: 15px; color: var(--muted); }
.app-hero-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.app-hero-head .app-icon { width: 72px; height: 72px; }
.app-hero-sector { color: var(--text); font-size: 18px; }

/* --- Footer ------------------------------------------------------------------- */

.site-footer { background: var(--brand-deep); color: #D6E7E0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; padding-top: 56px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand a:not(.brand) { color: #D6E7E0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 8px; }
.footer-cols h2 { margin-bottom: 4px; color: var(--gold-soft); font-family: var(--font-display); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-cols a { color: #D6E7E0; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #234A3F; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: #A9C8BC; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* --- Shared: gold and light buttons, app colours ------------------------------------ */

.btn-gold { background: var(--accent); color: var(--brand-deep); box-shadow: 0 10px 22px -12px rgba(227, 162, 26, 0.9); }
.btn-gold:hover { color: var(--brand-deep); box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.08), 0 10px 22px -12px rgba(227, 162, 26, 0.9); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; }
.btn-line { padding: 8px 14px; background: #fff; color: var(--brand); border: 1.5px solid var(--brand); font-size: 15px; }
.btn-line:hover { background: var(--tint); color: var(--brand-dark); }

/* The colour a visitor picks for their app (initials icon, swatches, PDF). */
.colour--green { --pick: #0F4C3A; }
.colour--blue { --pick: #145DA0; }
.colour--teal { --pick: #1D6A8F; }
.colour--rust { --pick: #A94E1C; }
.colour--plum { --pick: #6549AE; }
.colour--slate { --pick: #3E4F75; }

/* --- Home: "Create your own app" band ------------------------------------------------ */

.build-band { padding: 72px 0; background: var(--band-dark); color: #fff; }
.build-band h2, .build-band h3 { color: #fff; }
.build-band-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 48px; }
.eyebrow-gold { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow-gold::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(227, 162, 26, 0.2); }
.build-band h2 { margin-top: 12px; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.08; }
.build-band-lead { margin-top: 12px; max-width: 540px; color: var(--mint); font-size: 19px; }
.build-band-steps { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.build-band-steps li { min-width: 0; padding: 14px 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.build-band-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--brand-deep); font-family: var(--font-display); font-size: 13.5px; font-weight: 700; }
.build-band-steps h3 { margin: 10px 0 2px; font-size: 16px; }
.build-band-steps p { color: var(--mint); font-size: 14.5px; line-height: 1.4; }
.build-band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.build-band-cta span { color: #B5D3C7; font-size: 14.5px; }
.build-preview { min-width: 0; padding: 22px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65); transform: rotate(1.2deg); }
.build-preview-top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #EEF2F0; }
.build-preview-icon { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 17px; background: linear-gradient(180deg, #2E7D62, #0F4C3A); color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.build-preview-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.build-preview-sub { color: var(--muted); font-size: 14px; }
.build-preview-lines { list-style: none; margin: 0; padding: 12px 0; }
.build-preview-lines li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed #E3EAE6; font-size: 15px; }
.build-preview-lines li:first-child { border-top: 0; }
.build-preview-tag { flex: 0 0 auto; padding: 3px 9px; border-radius: 8px; background: #E8F2ED; color: var(--brand); font-size: 12px; font-weight: 700; }
.build-preview-tag--gold { background: var(--warn-bg); color: var(--warn-ink); }
.build-preview-plan { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: #F3F9F5; }
.build-preview-plan strong { color: var(--brand); font-family: var(--font-display); font-size: 17px; }
.build-preview-plan span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 960px) {
  .build-band-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .build-band { padding: 52px 0; }
  .build-band-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .build-band-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 12px 14px; }
  .build-band-num { grid-row: span 2; }
  .build-band-steps h3 { margin: 0; }
  .build-preview { transform: none; }
}

/* --- Create your own app (/build/) -------------------------------------------------- */

.build-hero .terms { margin-top: 6px; }
.build-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; column-gap: 36px; padding-top: 36px; padding-bottom: 80px; }
.build-steps { grid-column: 1; grid-row: 1; min-width: 0; }
.build-send { grid-column: 1; grid-row: 2; min-width: 0; }
.build-summary { grid-column: 2; grid-row: 1 / span 2; }
/* Sticky and fixed positioning is for the screen only, so it can never reach the PDF. */
@media screen { .build-summary { position: sticky; top: 92px; } }
.build-alert { margin-bottom: 20px; }

.build-step { margin-bottom: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.build-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.build-num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.build-step-head h2 { font-size: 21px; }
.build-step-head p { color: var(--muted); font-size: 15px; }

/* Step 1: start from */
.tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tpl { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; text-align: center; cursor: pointer; }
.tpl input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.tpl .app-icon { width: 52px; height: 52px; border-radius: 15px; overflow: hidden; }
.tpl .app-icon--aitfoirne img { width: 34px; height: auto; }
.tpl--scratch { border-style: dashed; }
.tpl-plus { width: 52px; height: 52px; border-radius: 15px; border: 2px dashed #9AAAA4; display: flex; align-items: center; justify-content: center; color: var(--brand); font-family: var(--font-display); font-size: 28px; line-height: 1; }
.tpl-text { min-width: 0; display: flex; flex-direction: column; }
.tpl-text strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.2; }
.tpl-text small { color: var(--muted); font-size: 13px; line-height: 1.25; }
.tpl-pill { padding: 2px 7px; font-size: 11px; }
.tpl:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand), 0 14px 30px -22px rgba(15, 76, 58, 0.7); }
.tpl:has(input:focus-visible) { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.tpl-note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--tint); color: var(--text); font-size: 15px; }
/* Foireann, the core app, is the main start option; each start app shows its price. */
.tpl--core { border-color: var(--brand); background: var(--tint); }
.tpl-price { margin-top: 2px; color: var(--brand); font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.tpl-tagline { color: var(--muted); font-size: 12px; line-height: 1.25; }
/* "Not sure? Describe what you need": its own step in place of steps 2 to 5, without a summary. */
.build-layout.is-describe { grid-template-columns: minmax(0, 1fr); }
.field-help { color: var(--muted); font-size: 14px; }
.build-describe textarea { min-height: 160px; resize: vertical; }
.build-describe-fields { margin-top: 16px; }

/* Step 2: name it */
/* Fields line up at the bottom, so the inputs stay level when a label wraps onto two lines. */
.build-row3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: 16px; }
.build-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 16px; }
.build-row3 .field-input, .build-row2 .field-input { height: 48px; }
.build-colours { margin-top: 16px; }
.field-label { font-weight: 600; font-size: 15px; }
/* Colour picker. Scoped to .swatches: the bare .swatch class also styles the 12 px legend squares
   in the example screens, and that rule must not size these. */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches > .swatch { position: relative; display: block; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; }
.swatches > .swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatches .swatch-colour { display: block; width: 100%; height: 100%; border-radius: 12px; background: var(--pick); }
/* The ring reaches 5 px and the focus ring 9 px out, both inside the 10 px gap. */
.swatches input:checked + .swatch-colour { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent); }
.swatches input:checked + .swatch-colour::after { content: ""; position: absolute; left: 13px; top: 12px; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.swatches input:focus-visible + .swatch-colour { outline: 3px solid var(--gold-soft); outline-offset: 6px; }

/* Step 3: modules */
.build-core { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 16px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #CFE3DA; border-radius: 16px; background: var(--tint); }
.build-core h3 { font-size: 16.5px; }
.build-core p { grid-column: 1; color: var(--text); font-size: 14.5px; }
.build-core .build-core-price { grid-column: 2; grid-row: 1 / span 2; color: var(--brand); font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.1; text-align: right; white-space: nowrap; }
.build-core-price small, .mod-price small { display: block; color: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 400; }
.build-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.build-count { color: var(--muted); font-size: 14.5px; }
.build-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.build-group-title { margin: 16px 0 6px; padding: 0; color: var(--muted); font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mod { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.mod input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.mod-text strong { display: block; font-size: 16px; }
.mod-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.mod-need { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; font-weight: 600; }
.mod:has(input:checked) { border-color: var(--brand); background: #F7FBF9; }
.mod-price { color: var(--brand); font-family: var(--font-display); font-size: 15px; font-weight: 700; text-align: right; white-space: nowrap; }
/* A sector app's package modules, and ÁitFoirne's locked rows. */
.mod-pill { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 12.5px; font-weight: 600; }
.mod:has(input:disabled) { cursor: default; background: var(--tint); }
.mod:has(input:disabled) .mod-price { display: none; }
.build-package-note { margin: 4px 0 6px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; font-weight: 600; }
/* "Never more than" and "Minimum": gold when they apply to the plan. */
.build-deals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.build-deal { min-width: 0; padding: 12px 14px; border: 1.5px dashed #B9C9C2; border-radius: 14px; color: var(--text); font-size: 14.5px; }
.build-deal strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.build-deal.is-on { border-style: solid; border-color: var(--accent); background: #FFFBF0; }

/* Step 4: sector extras */
.build-extra { padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; }
.build-extra-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.build-extra-label .pill { margin-left: 6px; font-size: 12px; vertical-align: 2px; }
.build-extra-items { list-style: none; margin: 8px 0 0 34px; padding: 0; }
.build-extra-items li { position: relative; padding: 2px 0 2px 16px; color: var(--text); font-size: 15px; }
.build-extra-items li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.build-extra-meta { margin: 10px 0 0 34px; color: var(--muted); font-size: 14px; }

/* Step 5: custom features */
.build-price-pill { display: inline-flex; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14.5px; font-weight: 600; }
.cf-list { display: grid; gap: 10px; }
.cf-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; }
.cf-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; font-weight: 700; }
.cf-remove { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 20px; cursor: pointer; }
.cf-error { grid-column: 2 / -1; }
.build-add { margin-top: 12px; min-height: 44px; padding: 0 16px; border: 1.5px dashed var(--brand); border-radius: 12px; background: #fff; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }

/* Summary: the dark-green "Your app" panel */
.build-summary { padding: 22px 22px 20px; border-radius: 24px; background: var(--band-dark); color: #fff; box-shadow: 0 30px 60px -34px rgba(11, 42, 34, 0.9); }
.build-summary .sum-label { color: var(--gold-soft); font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sum-top { display: flex; align-items: center; gap: 14px; margin: 12px 0 14px; }
.sum-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 17px; background: var(--pick, var(--brand)); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); color: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sum-top > div { min-width: 0; }
.sum-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sum-sub { color: var(--mint); font-size: 14px; }
.sum-lines { list-style: none; margin: 0; padding: 8px 0 0; max-height: 46vh; overflow: auto; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.sum-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); font-size: 14.5px; }
.sum-lines span { color: #E7F1EC; overflow-wrap: anywhere; }
.sum-lines em { grid-column: 2; grid-row: 1; color: var(--gold-soft); font-style: normal; font-weight: 700; white-space: nowrap; }
.sum-lines small { grid-column: 1; color: #B5D3C7; font-size: 12.5px; overflow-wrap: anywhere; }
.sum-lines .is-saving em { color: #9FE3BF; }
.sum-lines .is-note em { color: var(--mint); font-weight: 600; }
.sum-price { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.sum-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.sum-total b { color: var(--gold-soft); font-family: var(--font-display); font-size: 32px; line-height: 1; }
.sum-total span { color: #DDEBE5; font-size: 14.5px; }
.sum-total-text { margin-top: 6px; color: var(--mint); font-size: 13.5px; }
.sum-minimum { margin-top: 4px; color: #9FE3BF; font-size: 13.5px; font-weight: 600; }
.sum-cap { margin-top: 4px; color: var(--gold-soft); font-size: 13.5px; font-weight: 600; }
.sum-one { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; font-weight: 600; }
.sum-fine { margin-top: 10px; color: #B5D3C7; font-size: 12.5px; }
.sum-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }

/* Step 6: send */
.build-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.build-alt { margin-top: 14px; color: var(--muted); font-size: 15px; }
/* After sending (build.js): the confirmation that takes the place of the send form. */
.build-sent { padding: 20px 22px; border: 2px solid var(--brand); border-radius: 16px; background: var(--tint); }
.build-sent h3 { color: var(--brand); font-size: 20px; }
.build-sent p { margin-top: 8px; color: var(--text); overflow-wrap: anywhere; }
.build-sent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }

/* Phone bar: a summary strip fixed to the bottom on narrow screens. The plan is for printing only. */
.build-bar { display: none; }
@media screen { .plan-print { display: none; } }

/* Without :has(), show the real radio buttons so the choice stays visible. */
@supports not selector(:has(*)) {
  .tpl input { position: static; width: auto; height: auto; opacity: 1; }
}

@media screen and (max-width: 980px) {
  .build-layout { grid-template-columns: minmax(0, 1fr); }
  .build-steps, .build-summary, .build-send { grid-column: 1; grid-row: auto; }
  .build-summary { position: static; margin-bottom: 20px; }
  .sum-lines { max-height: none; }
  /* Tablets and phones: two columns, and "Not sure? Describe what you need" takes the last row. */
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl--scratch { grid-column: 1 / -1; }
  .build-deals { grid-template-columns: minmax(0, 1fr); }
  .build-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 19;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--brand-deep); color: #fff; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.4);
  }
  .build-bar b { display: block; color: var(--gold-soft); font-family: var(--font-display); font-size: 20px; }
  .build-bar span { display: block; color: var(--mint); font-size: 13px; }
  .page-build { padding-bottom: 76px; }
  .page-build .to-top { bottom: 92px; }
}
@media (max-width: 640px) {
  .build-step { padding: 18px 14px 20px; }
  .build-row3, .build-row2 { grid-template-columns: minmax(0, 1fr); }
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tpl { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 2px 8px; padding: 8px; text-align: left; }
  .tpl .app-icon, .tpl-plus { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; }
  .tpl .app-icon--aitfoirne img { width: 24px; }
  .tpl-plus { font-size: 20px; }
  .tpl-text strong { font-size: 14px; }
  .tpl-text small { font-size: 12px; }
  .tpl-pill { grid-column: 1 / -1; justify-self: start; margin-top: 4px; padding: 1px 7px; font-size: 10.5px; }
  .sum-buttons { grid-template-columns: minmax(0, 1fr); }
  /* On phones the prices sit under the names instead of beside them. */
  .build-core { grid-template-columns: minmax(0, 1fr); }
  .build-core h3 { grid-row: 1; }
  .build-core .build-core-price { grid-column: 1; grid-row: 2; text-align: left; }
  .build-core p:not(.build-core-price) { grid-row: 3; }
  .mod { grid-template-columns: 24px minmax(0, 1fr); }
  .mod-price { grid-column: 2; text-align: left; }
  .build-core-price small, .mod-price small { display: inline; margin-left: 6px; }
  .swatches > .swatch { width: 44px; height: 44px; }
  .swatches input:checked + .swatch-colour::after { left: 15px; top: 14px; }
}

/* --- The app plan PDF (print view of /build/ only) -------------------------------------- */

@media print {
  @page { size: A4; margin: 14mm; }
  body.page-build { padding: 0 !important; background: #fff; color: #13201C; font-size: 10.5pt; }
  /* Print only the plan: hide everything around it, by name as well as by position in the page. */
  body.page-build > :not(main),
  body.page-build main > :not(#plan),
  body.page-build .skip-link,
  body.page-build .site-header,
  body.page-build .site-footer,
  body.page-build .to-top,
  body.page-build .build-hero,
  body.page-build .build-layout,
  body.page-build .build-summary,
  body.page-build .build-bar { display: none !important; }
  body.page-build main { display: block; margin: 0; padding: 0; }
  body.page-build #plan { display: block !important; }
  .pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 10px; border-bottom: 3px solid #0F4C3A; }
  .pp-brand { color: #0F4C3A; font-family: var(--font-display); font-size: 17pt; font-weight: 700; }
  .pp-tagline, .pp-doc p { color: #55655F; font-size: 9.5pt; }
  .pp-doc { text-align: right; }
  .pp-doc .pp-title { color: #13201C; font-family: var(--font-display); font-size: 14pt; font-weight: 700; }
  .pp-app { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
  .pp-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: var(--pick, #0F4C3A); color: #fff; font-family: var(--font-display); font-size: 12pt; font-weight: 700; display: flex; align-items: center; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-name { font-family: var(--font-display); font-size: 13pt; font-weight: 700; }
  .pp-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
  .pp-info div { padding: 7px 9px; border-radius: 6px; background: #F3F9F5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-info small { display: block; color: #55655F; font-size: 8pt; letter-spacing: 0.05em; text-transform: uppercase; }
  .pp-info b { font-size: 10.5pt; }
  .pp-for { margin-top: 6px; color: #3D4D47; font-size: 9.5pt; }
  .pp-section { margin: 14px 0 6px; color: #0F4C3A; font-family: var(--font-display); font-size: 11pt; }
  .pp-table { width: 100%; border-collapse: collapse; }
  .pp-table thead { display: table-header-group; }
  .pp-table th { padding: 5px 6px; border-bottom: 1.5px solid #0F4C3A; color: #55655F; font-size: 8.5pt; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; }
  .pp-table td { padding: 6px; border-bottom: 1px solid #D5E0DB; font-size: 10pt; vertical-align: top; }
  .pp-table .pp-desc { width: 52%; color: #55655F; font-size: 9pt; }
  .pp-table .pp-r { text-align: right; white-space: nowrap; }
  .pp-table .pp-qty { color: #3D4D47; white-space: nowrap; }
  .pp-table tr, .pp-box { break-inside: avoid; page-break-inside: avoid; }
  .pp-not-ready .pp-r, .pp-minimum .pp-r { color: #55655F; font-style: italic; }
  .pp-saving td { color: #1E7A52; }
  .pp-cap td { padding-top: 4px; border-bottom: 0; color: #3D4D47; font-size: 9pt; font-style: italic; }
  .pp-total td { padding-top: 8px; border-top: 2px solid #0F4C3A; border-bottom: 0; font-family: var(--font-display); font-size: 11.5pt; font-weight: 700; }
  .pp-total .pp-r { color: #0F4C3A; }
  .pp-box { margin-top: 16px; padding: 10px 12px; border-radius: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-box--next { border: 2px solid #E3A21A; background: #FFFBF0; }
  .pp-box-title { color: #0B2A22; font-family: var(--font-display); font-size: 11pt; font-weight: 700; }
  .pp-notes { list-style: none; margin: 14px 0 0; padding: 0; color: #3D4D47; font-size: 9pt; }
  .pp-notes li { position: relative; padding: 2px 0 2px 12px; }
  .pp-notes li::before { content: "•"; position: absolute; left: 0; color: #0F4C3A; }
  .pp-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 8px; border-top: 1px solid #D5E0DB; color: #55655F; font-size: 8.5pt; }
}

/* --- Oliver's developer page (/oliver/) ------------------------------------------------------------ */

/* Sections reached from the in-page nav stop below the sticky header (76 px high). */
.dev-section { scroll-margin-top: 96px; }
.dev-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.dev-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dev-status { color: var(--brand); font-weight: 600; }

/* "On this page": one row of links under the hero; on narrow screens the row scrolls sideways on its own. */
.page-nav { background: #fff; border-bottom: 1px solid var(--line-soft); }
.page-nav ul { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; }
.page-nav li { flex: 0 0 auto; }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-nav a:hover { background: var(--tint); color: var(--brand); }
.page-nav a:focus-visible { outline-offset: -3px; }

/* Key figures: a compact list, not number cards. */
.dev-band { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.dev-figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 32px; }
.dev-figures li { position: relative; min-width: 0; padding-left: 18px; color: var(--text); font-size: 16px; line-height: 1.45; }
.dev-figures li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* The main case study: the screenshot and the problem, then the details in two columns (one on phones). */
.dev-case-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 28px; }
.dev-subhead { margin: 24px 0 8px; color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.dev-subhead + p, .dev-subhead + .project-features, .dev-subhead + .dev-chips { margin-top: 0; }
.dev-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 8px; }
.dev-case-grid p { color: var(--text); }
.dev-case-grid p + p { margin-top: 12px; }
@media (max-width: 900px) { .dev-case-grid { grid-template-columns: minmax(0, 1fr); } }
.dev-apps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.dev-apps a { font-weight: 600; }
.dev-chips { list-style: none; margin: 0; padding: 0; }
.dev-chips .chip { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* The project cards, from content.PORTFOLIO. */
.dev-group-title { margin: 56px 0 18px; font-size: 24px; }
.dev-group-title + p { margin: -6px 0 18px; color: var(--text); }
.dev-project-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.dev-project-name { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.dev-project .project-features { margin: 0; }
.dev-project .project-features li { font-size: 16px; }
.dev-project-link { margin-top: auto; padding-top: 4px; }
.dev-note { color: var(--muted); font-size: 15.5px; }
.dev-projects + .dev-note { margin-top: 18px; }
.dev-after { margin-top: 24px; max-width: 860px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }

/* "How I work": five numbered steps; the number comes from the list's own counter. */
.dev-steps { list-style: none; margin: 0; padding: 0; counter-reset: dev-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dev-steps > li { counter-increment: dev-step; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dev-steps > li::before { content: counter(dev-step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; }
.dev-steps h3 { font-size: 19px; }
.dev-steps p { color: var(--text); font-size: 16px; }

.dev-path { margin-top: 40px; }
.dev-path h3 { margin-bottom: 16px; }
/* The release path: boxes with a drawn arrow between them (nothing for a screen reader to read out); one under
   the other on phones. */
.release-path { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.release-path li { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); color: var(--ink); font-weight: 600; }
.release-path li + li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; border-top: 2.5px solid var(--brand); border-right: 2.5px solid var(--brand); transform: translateY(-50%) rotate(45deg); }
.release-path-caption { margin-top: 16px; max-width: 860px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) {
  .release-path { flex-direction: column; gap: 32px; }
  .release-path li + li::before { left: 50%; top: -22px; transform: translateX(-50%) rotate(135deg); }
}

.dev-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.dev-skill-group h3 { margin-bottom: 10px; font-size: 18px; }
.dev-skills + .dev-note { margin-top: 24px; }
@media (max-width: 760px) { .dev-skills { grid-template-columns: minmax(0, 1fr); } }

/* Experience: a timeline, newest first, with a dot on the line for each entry. */
.dev-timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--line); max-width: 860px; display: flex; flex-direction: column; gap: 22px; }
.dev-timeline li { position: relative; }
.dev-timeline li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 12px; height: 12px; border: 3px solid var(--brand); border-radius: 50%; background: #fff; }
.dev-timeline-dates { display: block; color: var(--brand); font-size: 15px; font-weight: 700; }
.dev-timeline p { color: var(--text); }
.dev-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 44px; }
.dev-facts h3 { margin-bottom: 8px; font-size: 18px; }
.dev-facts ul { margin: 0; padding-left: 20px; color: var(--text); }
@media (max-width: 760px) { .dev-facts { grid-template-columns: minmax(0, 1fr); } }

/* "Work with me": four cards, two by two; one column when two would be narrower than 300 px. */
.dev-services .card { flex: 1 1 max(300px, calc(50% - 10px)); }
.dev-run { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }

/* --- Oliver's developer page: print, so a recruiter can print it ------------------------------------ */
@media print {
  body.page-oliver { font-size: 11pt; }
  body.page-oliver .site-nav,
  body.page-oliver .nav-toggle,
  body.page-oliver .page-nav,
  body.page-oliver .enquiry-form,
  body.page-oliver .btn,
  body.page-oliver .to-top,
  body.page-oliver .skip-link,
  body.page-oliver .footer-cols { display: none !important; }
  body.page-oliver .site-header { position: static; }
  body.page-oliver .section { padding: 20pt 0; }
  body.page-oliver main a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; overflow-wrap: anywhere; }
  body.page-oliver .dev-case-grid > div,
  body.page-oliver .dev-project,
  body.page-oliver .dev-services .card,
  body.page-oliver .dev-steps > li,
  body.page-oliver .dev-timeline li { break-inside: avoid; }
}
