/* IA SYSTEMS product site kit (template v1, designer-f3). The :root tokens above come from the product's kit (product.json → build.py); nothing here names a product colour. */
:root {
  --ink: #0B0B0D;
  --ink-2: #1D1B18;
  --ink-3: #2A241B;
  --ink-4: #2A241B;
  --accent: #CFAE6E;
  --accent-2: #E6D3A8;
  --accent-hover: #DDC08A;
  --on-dark: #D9C9A6;
  --paper: #FAF7F1;
  --text: #1A1712;
  --muted: #6B5E4A;
  --glow-hero: color-mix(in srgb, #CFAE6E 25%, #1D1B18);
  --glow-shot: color-mix(in srgb, #CFAE6E 22%, #1D1B18);
  --glow-cta: color-mix(in srgb, #CFAE6E 20%, #1D1B18);
  --on-accent: #1B1712;
  --accent-ink: #7A5B1F;
  --display-tracking: 0;
  --display-weight: 500;
  --fill: #CFAE6E;
  --fill-2: #E6D3A8;
  --on-fill: #1B1712;
  --btn-light: #CFAE6E;
  --btn-light-hover: #DDC08A;
  --on-btn-light: #1B1712;
  --white: #fff;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --green: #22c55e;
  --red: #ef4444;
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --card-weight: 600;
  --card-size: 1.5rem;
  --card-lh: 1.2;
}
*, *::before, *::after { box-sizing: border-box; }
/* The platform's page chrome centres <main> in a narrow column: sections must run edge to edge. */
main { max-width: none; margin: 0; padding: 0; }
body > footer { max-width: none; margin: 0; padding: 0; font-size: inherit; opacity: 1; }
:root { color-scheme: only light; }  /* no browser repainting it dark: the design is light */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.1; letter-spacing: var(--display-tracking); margin: 0 0 .6em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: calc(var(--display-tracking) / 2); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-alt { background: var(--paper); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.on-dark { color: #fff; }
.on-dark .lead { color: rgba(255, 255, 255, .78); }
.on-dark .eyebrow, .hero .eyebrow, .cta .eyebrow { color: var(--on-dark); }

/* Buttons */
.btn, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px; font: 600 1rem var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover, .ghost:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost, .ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover, .ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.soon { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.3rem; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85); font-size: .95rem; }
.soon svg { flex: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; margin-inline-end: auto; font: 600 1.05rem var(--display); letter-spacing: -.01em; }
.brand img { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.menu { display: flex; align-items: center; gap: 1.7rem; }
.menu a:not(.btn) { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; transition: color .15s; }
.menu a:not(.btn):hover { color: #fff; }
.menu .btn { padding: .55rem 1.2rem; font-size: .92rem; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-desktop { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle summary { list-style: none; cursor: pointer; padding: .45rem .8rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; font-size: .9rem; }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle .menu { position: absolute; inset-inline: 0; top: 4.2rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: .4rem 1.25rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu-toggle .menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .menu-toggle .menu .btn { margin-top: 1rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 700px at 85% 10%, var(--glow-hero) 0%, transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-4) 100%); padding-block: clamp(4rem, 9vw, 7.5rem) clamp(5rem, 10vw, 8.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
/* A solid colour, never gradient text: background-clip:text falls back to dark ink in some browsers (owner, 2026-11-27). */
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .lead { color: rgba(255, 255, 255, .8); margin-bottom: 2rem; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.hero-note span::before { content: "✓"; color: var(--accent-2); margin-inline-end: .4rem; font-weight: 700; }
.stage { position: relative; min-height: calc(34rem * var(--stage-k, 1)); }
.stage::before, .stage::after { content: ""; position: absolute; inset: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .09); translate: -50% -50%; }
.stage::before { width: 34rem; height: 34rem; }
.stage::after { width: 24rem; height: 24rem; border-color: rgba(255, 255, 255, .14); }
.stage .app { position: absolute; width: min(18rem, 50%); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.stage .a1 { inset-inline-start: 2%; top: 4%; rotate: -4deg; }
.stage .a2 { inset-inline-end: 2%; top: 22%; rotate: 3deg; z-index: 2; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .stage { min-height: calc(30rem * var(--stage-k, 1)); max-width: 34rem; margin-inline: auto; width: 100%; } }
@media (max-width: 520px) { .stage { min-height: calc(24rem * var(--stage-k, 1)); } .stage::before { width: 24rem; height: 24rem; } .stage::after { width: 17rem; height: 17rem; } }

/* "For whom" */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.section-alt .card { background: #fff; }
.card .ico { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--fill-2), var(--fill)); color: var(--on-fill); margin-bottom: 1.1rem; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* The network diagram */
.net { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }
.net-fig { background: linear-gradient(160deg, var(--ink-2), var(--ink-3)); border-radius: 26px; padding: 2.2rem 1.6rem; color: #fff; position: relative; overflow: hidden; }
.net-box { border: 1.5px dashed rgba(255, 255, 255, .32); border-radius: 20px; padding: 1.5rem 1.2rem 1.3rem; position: relative; }
.net-box > .tag { position: absolute; top: -.8rem; inset-inline-start: 1.2rem; background: var(--ink-3); padding: 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.net-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.net-node { flex: 1; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 1rem .6rem; font-size: .9rem; }
.net-node b { display: block; font-family: var(--display); font-size: 1.05rem; margin-top: .4rem; }
.net-node.me { background: linear-gradient(145deg, var(--accent-2), var(--accent)); border-color: transparent; color: var(--on-accent); }
.net-link { flex: none; width: 2.4rem; height: 2px; position: relative; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 10px); }
.net-link i { position: absolute; bottom: .5rem; inset-inline-start: 50%; translate: -50% 0; font-style: normal; font-size: .72rem; white-space: nowrap; color: rgba(255, 255, 255, .65); }
@media (max-width: 560px) {
  .net-row { flex-direction: column; align-items: stretch; }
  .net-link { width: 2px; height: 2rem; align-self: center; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 10px); }
  .net-link i { bottom: auto; top: 50%; inset-inline-start: .8rem; translate: 0 -50%; }
}
.net-cap { margin: 1.2rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .65); text-align: center; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; color: var(--muted); }
.ticks li::before { content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1712' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat; margin-top: .1rem; }
.ticks b { color: var(--text); }
@media (max-width: 900px) { .net { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 7vw, 6.5rem); }
.feature.flip .shot { order: -1; }
.feature .shot { display: grid; place-items: center; padding: 2.4rem 1rem; border-radius: 28px; background: radial-gradient(500px 360px at 50% 40%, var(--glow-shot) 0%, transparent 72%), linear-gradient(160deg, var(--ink), var(--ink-3)); }
.feature .shot img { width: min(15.5rem, 70%); filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .5)); }
.feature h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: .5em; }
.keys { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.keys li { padding: .3rem .8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; color: var(--text); }
.kbd { font-family: var(--font); font-size: .85em; padding: .12em .5em; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--text); white-space: nowrap; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 2rem; } .feature.flip .shot { order: 0; } }

/* Three-up facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.fact { background: linear-gradient(160deg, var(--ink-2), var(--ink-3)); color: #fff; border-radius: var(--radius); padding: 1.8rem; }
.fact h3 { color: #fff; margin-bottom: .8rem; }
.fact ul { margin: 0; padding-inline-start: 1.1rem; color: rgba(255, 255, 255, .78); display: grid; gap: .5rem; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }

/* Requirements */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.2rem; counter-reset: n; }
.need { border-top: 3px solid var(--fill); padding-top: 1.2rem; }
.need::before { counter-increment: n; content: "0" counter(n); font: 700 .9rem var(--display); color: var(--accent-ink); letter-spacing: .1em; }
.need h3 { margin-top: .3rem; }
.need p { color: var(--muted); }
@media (max-width: 900px) { .needs { grid-template-columns: 1fr; } }

/* Final call to action */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; background: radial-gradient(900px 500px at 50% 0%, var(--glow-cta) 0%, transparent 70%), linear-gradient(170deg, var(--ink) 0%, var(--ink-3) 100%); }
.cta .big-icon { width: 5.5rem; height: 5.5rem; border-radius: 24px; margin: 0 auto 1.6rem; box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 50%, transparent); }
.cta h2 { color: #fff; }
.cta .lead { margin-inline: auto; color: rgba(255, 255, 255, .8); }
.cta .btn-row { justify-content: center; margin-top: 1.8rem; }

/* Page heroes (contact, thanks) */
.hero-page { padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-page h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 22ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: center; }
.info-list .icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--accent-ink); }
.info-list .icon svg { width: 1.25rem; height: 1.25rem; }
.info-list b { display: block; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: 400 1rem var(--font); padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 4rem 2.2rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font: 600 .8rem var(--font); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .about { max-width: 26ch; font-size: .95rem; margin-top: 1rem; }
.site-footer .maker { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.site-footer .maker img { height: 2.2rem; width: auto; }
.site-footer .maker a { display: inline-flex; align-items: center; gap: .8rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Phone frame (designer-f3, 2026-11-27): phone-app pictures only, when product.json says
   "phone_frame": true. A plain 6px bezel, corners about 10% of the screen width (the vertical
   radius --rv is computed per picture from its proportions), a 1px light edge for dark panels. */
img.phone { border: 6px solid #0B1220; border-radius: 10% / var(--rv, 4.6%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); background: #0B1220; }

/* The primary action stays in the bar on the phone: a compact pill beside the menu button. */
.nav-cta-mobile { display: none; }
@media (max-width: 860px) {
  .nav-cta-mobile { display: inline-flex; height: 2.25rem; padding: 0 1rem; font-size: .9rem; box-shadow: none; white-space: nowrap; flex: none; }
  .brand { min-width: 0; }
  .brand span { white-space: nowrap; font-size: .95rem; }
}
/* Too narrow for the name beside the action: the mark alone (the name opens the hero just below). */
@media (max-width: 460px) {
  .topbar .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .topbar .wrap { gap: .75rem; }
}

/* Tablet frame: iPad pictures, landscape. The phone frame's bezel and edge, corners about 3.5 % of the width. */
img.tablet { border: 6px solid #0B1220; border-radius: 3.5% / var(--rv, 4.7%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); background: #0B1220; }
.feature .shot img.tablet, .feature .shot img.window { width: min(100%, 34rem); }

/* « How it works »: the diagram card with numbered steps (designer-f3, TEMPLATE §7). */
.net-node .num { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin: 0 auto .5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); font: 700 .8rem var(--font); }
.net-node.me .num { border-color: currentColor; }
.net-fig.steps .net-node { padding-inline: .5rem; }

/* A hero with one picture (a tablet or a desktop window): centred, no tilt, no rings. */
.stage.solo { min-height: 0; display: grid; place-items: center; }
.stage.solo::before, .stage.solo::after { display: none; }
.stage.solo .app { position: static; width: 100%; rotate: 0deg; }

/* Card titles in the 3-card blocks. A light display face (Odonta's Cormorant) reads thin at
   h3 size, so its display_font gives a heavier, larger card title (designer-f3); others keep h3. */
.card h3, .fact h3, .need h3 { font-weight: var(--card-weight, var(--display-weight)); font-size: var(--card-size, 1.25rem); line-height: var(--card-lh, 1.1); }

/* An optional caption under a feature picture, on the dark panel. */
.feature .shot { grid-template-rows: auto auto; }
.feature .shot .shot-cap { margin: 1rem 0 0; font-size: .82rem; color: rgba(255, 255, 255, .7); text-align: center; }

/* A feature picture with a phone close-up (below 600px): the <picture> is the shot's block. */
.feature .shot picture { display: contents; }
/* 3D stills: full-bleed in the panel, no window frame. */
.feature .shot img.still { width: 100%; border-radius: 12px; }

/* Arabic inside a Latin line (an eyebrow): its own face, no tracking, no capitals. */
[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font); letter-spacing: 0; text-transform: none; }

/* "Get the apps": store and download buttons, shown only when each is live. */
.apps-row { margin-top: 1.6rem; }
.apps-note { margin-top: 1.2rem; color: var(--muted); font-size: .92rem; }

/* Primary buttons on light sections and forms: the accent itself when it is dark enough, else the product's own pair. */
.section:not(.cta) .btn-primary, .form .btn-primary { background: var(--btn-light); color: var(--on-btn-light); }
.section:not(.cta) .btn-primary:hover, .form .btn-primary:hover { background: var(--btn-light-hover); }
