/* Arbiva Ltd – developer site
   Palette: harbour ink, clean paper, cool wash, deep teal for actions, lamp yellow for the studio mark. */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-latin-ext-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-latin-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #172235;
  --ink-soft: #4A5870;
  --paper: #FFFFFF;
  --wash: #EEF2F7;
  --line: #D9E1EA;
  --teal: #0B6E69;
  --teal-dark: #08524E;
  --lamp: #F2B33D;
  --app: var(--teal);
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 650; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 36em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small { font: 400 15px/1 var(--body); color: var(--ink-soft); letter-spacing: 0; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.site-nav a:hover { color: var(--teal); text-decoration: underline; }

/* Home hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.homescreen { background: var(--ink); border-radius: 34px; padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px) clamp(14px, 2.5vw, 26px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); max-width: 420px; justify-self: end; width: 100%; }
.homescreen a { display: grid; justify-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; text-align: center; line-height: 1.25; }
.homescreen img { width: min(100%, 112px); aspect-ratio: 1; border-radius: 24%; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.homescreen a:hover span { text-decoration: underline; }
.homescreen a:focus-visible { outline-offset: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: 999px; font: 700 16px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-play { background: var(--ink); color: #fff; }
.btn-play:hover { background: #000; color: #fff; }
.btn-play svg { width: 18px; height: 18px; flex: none; }
.btn-soon { background: var(--wash); color: var(--ink-soft); border-color: var(--line); cursor: default; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-wash { background: var(--wash); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); }

/* App list */
.app-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.app-row > img { width: 88px; height: 88px; border-radius: 22%; grid-row: span 2; }
.app-row h3 a { color: var(--ink); text-decoration: none; }
.app-row h3 a:hover { text-decoration: underline; }
.app-row .tagline { color: var(--ink-soft); max-width: 40em; }
.app-row .for { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.app-row .actions { grid-column: 3; grid-row: 1 / span 2; width: 250px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.app-row .actions .btn { justify-content: center; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin: 0; }
.principles div { border-left: 4px solid var(--lamp); padding-left: 18px; }
.principles dt { font: 650 20px/1.25 var(--display); margin-bottom: 6px; }
.principles dd { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.contact p + p { margin-top: 12px; }
.contact .email { font: 650 clamp(20px, 2.4vw, 26px)/1.3 var(--display); word-break: break-word; }

/* App page */
.crumbs { padding-top: 22px; font-size: 15px; }
.crumbs a { color: var(--ink-soft); }
.app-hero { padding: 24px 0 clamp(32px, 5vw, 56px); }
.app-hero .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.app-hero .app-icon { width: clamp(88px, 12vw, 136px); aspect-ratio: 1; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.app-hero h1 { font-size: clamp(30px, 4.6vw, 52px); }
.app-hero .lede { margin-top: 12px; }
.app-hero .for { margin-top: 10px; font-weight: 700; color: var(--ink); }
.app-hero .hero-actions { margin-top: 22px; }
.soon-note { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

.shots { background: var(--wash); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shot-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 14px; margin: 0 auto; max-width: calc(var(--max) + 2 * var(--gutter)); list-style: none; scrollbar-color: var(--line) transparent; }
.shot-strip li { flex: none; scroll-snap-align: start; }
.shot-strip img { border-radius: 18px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.shot-strip.portrait img { width: clamp(180px, 22vw, 250px); aspect-ratio: 9 / 16; object-fit: cover; }
.shot-strip.landscape img { width: clamp(300px, 46vw, 520px); aspect-ratio: 16 / 9; object-fit: cover; }

.intro { max-width: 40em; font-size: 19px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin: 36px 0 0; }
.features div { border-top: 3px solid var(--app); padding-top: 14px; }
.features dt { font: 650 19px/1.3 var(--display); margin-bottom: 6px; }
.features dd { margin: 0; color: var(--ink-soft); }

.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.facts h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.facts p + p { margin-top: 12px; }
.fineprint { margin-top: 36px; font-size: 15px; color: var(--ink-soft); max-width: 48em; }

/* Policy pages */
.policy { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 72px; }
.policy h1 { font-size: clamp(28px, 4vw, 40px); margin: 18px 0 8px; }
.policy h2 { font-size: 22px; margin: 32px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.policy h3 { font-size: 18px; margin: 22px 0 6px; }
.policy p, .policy ul, .policy ol, .policy table { margin: 0 0 12px; }
.policy ul, .policy ol { padding-left: 22px; }
.policy li { margin: 4px 0; }
.policy .meta { color: var(--ink-soft); font-size: 15px; }
.policy .box, .policy .summary { background: var(--wash); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.policy .summary ul { margin-bottom: 0; }
.policy .lang, .policy nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; font-weight: 700; }
.policy span.lang { display: inline-block; background: var(--wash); border-radius: 999px; padding: 2px 12px; font-size: 14px; color: var(--ink-soft); margin: 18px 0 0; }
.policy .eyebrow { color: var(--ink-soft); font-size: 15px; }
.policy header { display: grid; gap: 4px; }
.policy section.card { margin-bottom: 24px; }
.policy .small { font-size: 14px; color: var(--ink-soft); }
.policy table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.policy th, .policy td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.policy th { background: var(--wash); }
.policy hr { border: 0; border-top: 2px solid var(--line); margin: 40px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #D5DDE8; padding: 48px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.site-footer a { color: #fff; }
.site-footer h2 { font: 650 16px/1.3 var(--display); color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer p + p { margin-top: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }

/* 404 */
.notfound { padding: 96px 0; }
.notfound p { margin-top: 14px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .homescreen { justify-self: start; max-width: 360px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; }
  .brand small { display: none; }
  .app-row { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 16px; }
  .app-row > img { width: 64px; height: 64px; grid-row: span 2; }
  .app-row .actions { width: auto; grid-column: 1 / -1; grid-row: auto; flex-direction: row; flex-wrap: wrap; margin-top: 10px; }
  .app-row .actions .btn { flex: 1 1 auto; }
  .principles, .contact, .facts, .features { grid-template-columns: 1fr; }
  .app-hero .wrap { grid-template-columns: 1fr; }
  .homescreen { max-width: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
