/* aioscloud.co.uk. Inter for reading, Fraunces for headings (both SIL OFL,
   served from here: no third-party requests). */
@font-face { font-family: 'Inter'; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(fonts/fraunces.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f5f1;
  --bg-2: #efebe4;
  --card: #ffffff;
  --ink: #15191b;
  --ink-2: #3d4549;
  --muted: #6a7377;
  --line: #e2ddd4;
  --teal: #0f8f7e;
  --teal-soft: #d9f1ec;
  --amber: #c27a12;
  --amber-soft: #f6e8cf;
  --stage: #0b1012;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 25, 27, .05), 0 12px 32px -12px rgba(20, 25, 27, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1113;
    --bg-2: #121719;
    --card: #151b1e;
    --ink: #eef2f1;
    --ink-2: #c3cccb;
    --muted: #8c9897;
    --line: #232c2f;
    --teal: #5ee0c8;
    --teal-soft: #12302b;
    --amber: #e9ac4b;
    --amber-soft: #33270f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, sans-serif; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 13px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 19px/1 Fraunces, serif; text-decoration: none; letter-spacing: 0.01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: radial-gradient(circle at 34% 40%, var(--amber) 0 18%, transparent 19%),
              radial-gradient(circle at 66% 40%, var(--amber) 0 18%, transparent 19%),
              var(--stage);
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.brand-mark.sm { width: 16px; height: 16px; border-radius: 5px; display: inline-block; vertical-align: -3px; margin-right: 8px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav-cta { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
@media (max-width: 600px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---- hero ---- */
.hero { padding: 96px 24px 72px; }
.hero > * { max-width: 860px; }
@media (max-width: 600px) { .hero { padding: 56px 16px 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 560; }
.hero h1 em { font-style: italic; color: var(--teal); font-weight: 500; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin-top: 24px; max-width: 680px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--teal)); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---- sections ---- */
.section { padding: 72px 24px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding: 52px 16px; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head .muted { font-size: 18px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar h3 { font-size: 20px; margin: 16px 0 8px; }
.pillar p { color: var(--ink-2); font-size: 15.5px; }
.pillar-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; }
.pillar-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.honest { margin-top: 24px; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.honest h3 { font-size: 20px; margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }
.checks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15.5px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px dashed var(--muted);
}
.checks li.done { color: var(--ink); }
.checks li.done::before {
  border: 0; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---- apps ---- */
.app {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
@media (max-width: 900px) { .app { grid-template-columns: 1fr; gap: 32px; padding: 24px; } }
@media (max-width: 600px) { .app { padding: 20px 16px; border-radius: 20px; } }
.app-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-title h3 { font-size: 32px; }
.app-badge { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.app-badge.hb { background: radial-gradient(circle at 34% 42%, #e9ac4b 0 15%, transparent 16%), radial-gradient(circle at 66% 42%, #e9ac4b 0 15%, transparent 16%), var(--stage); box-shadow: inset 0 0 0 1.5px #5ee0c8; }
.app-badge.pb { background: conic-gradient(from 200deg, #2f6fb0, #e7b53b, #c8452f, #3c8f6a, #2f6fb0); }
.pill { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); letter-spacing: .02em; }
.app-lead { font: 500 21px/1.35 Fraunces, serif; margin: 14px 0 12px; color: var(--ink); }
.app-copy > p:not(.app-lead) { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 12px; height: 2px; border-radius: 2px; background: var(--teal); }
.app-pb .ticks li::before { background: var(--amber); }
.link-out { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--amber); text-decoration: none; }
.link-out:hover { text-decoration: underline; }
.demo-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

/* HomeBudy demo: a phone-shaped stage */
.demo-hb { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16.5; border-radius: 34px;
  background: radial-gradient(ellipse at 50% 38%, #10202a 0%, var(--stage) 70%);
  box-shadow: 0 0 0 10px #1b2225, 0 0 0 11px #2a3337, 0 30px 60px -20px rgba(0,0,0,.55);
  overflow: hidden;
}
.phone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chat { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: 16px; animation: rise .35s ease-out; }
.bubble.you { align-self: flex-end; background: #24343a; color: #e6f1ef; border-bottom-right-radius: 5px; }
.bubble.hb { align-self: flex-start; background: rgba(94, 224, 200, .14); color: #c9f5ec; border: 1px solid rgba(94,224,200,.28); border-bottom-left-radius: 5px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.play {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid rgba(94,224,200,.45); background: rgba(13, 22, 25, .8);
  color: #dffaf3; font: 600 15px/1 Inter, sans-serif; cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap;
}
.play svg { width: 18px; height: 18px; fill: #5ee0c8; }
.play:hover { background: rgba(20, 40, 42, .9); }
.play[hidden] { display: none; }

/* PaintBudy demo */
.demo-pb { width: 100%; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: 600 14px/1 Inter, sans-serif; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mix-out { display: flex; gap: 16px; align-items: center; }
.swatch { width: 120px; height: 120px; border-radius: 22px; flex: none; background: var(--bg-2); border: 1px solid var(--line); transition: background .35s ease; box-shadow: inset 0 -12px 24px rgba(0,0,0,.08); }
.mix-read { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; }
.mix-read .mono { color: var(--muted); }
.tubes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 420px) { .tubes { grid-template-columns: repeat(3, 1fr); } }
.tube {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  font: 500 12.5px/1.25 Inter, sans-serif; color: var(--ink-2); text-align: center; position: relative;
}
.tube:hover { border-color: var(--muted); }
.tube[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; color: var(--ink); }
.tube .blob { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), inset 0 3px 6px rgba(255,255,255,.25); }
.tube .parts { position: absolute; top: 6px; right: 7px; display: none; align-items: center; gap: 2px; }
.tube[aria-pressed="true"] .parts { display: inline-flex; }
.parts b { font: 700 11px/1 Inter, sans-serif; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; background: var(--amber); color: #1b1a17; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); background: #1b1a17; }
.shots figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 28px; } }
.contact .muted + .muted { margin-top: 12px; }
.form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea {
  font: 400 16px/1.4 Inter, sans-serif; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #d2553f; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bubble { animation: none; } }
.next { margin-top: 18px; font-size: 15px; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); }
.next strong { color: var(--amber); }
.next.artists { background: var(--bg-2); border: 1px solid var(--line); margin-top: 10px; }
.next.artists strong { color: var(--ink); }
.next.artists a { color: var(--amber); font-weight: 600; }
