/* Nonodon LLC | styles.css | REV 0.4 | 20261101 | Purpose: styles for www.nonodon.com */

:root {
  /* light (default) */
  --ground: #F6F5F4;
  --surface: #FFFFFF;
  --ink: #1A1818;
  --ink-strong: #000000;
  --muted: #5C5755;
  --line: #E3E0DE;
  --line-strong: #C9C4C2;
  --accent-text: #C23F00;
  --accent-hover: #9E3300;
  --dark: #EFEDEB;
  --dark-card: #FFFFFF;
  --dark-line: #E3E0DE;
  --dark-text: #3D3937;
  --dark-muted: #5C5755;
  --dark-accent: #C23F00;
  --placeholder: #ECEAE8;
  --band: #EFEDEB;
  --live: #15803D;
  /* same in both themes */
  --black: #000000;
  --accent: #F24F00;
  --on-accent: #0A0A0A;
  --brand-grey: #4D4948;
  --on-black: #F2F0EF;
  --on-black-muted: #A8A3A1;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

html[data-theme="dark"] {
  --ground: #0A0A0A;
  --surface: #141414;
  --ink: #F2F0EF;
  --ink-strong: #FFFFFF;
  --muted: #A8A3A1;
  --line: #2E2C2B;
  --line-strong: #4D4948;
  --accent-text: #F24F00;
  --accent-hover: #FF7A3D;
  --dark: #141414;
  --dark-card: #1C1B1B;
  --dark-line: #3A3736;
  --dark-text: #D6D2D0;
  --dark-muted: #A8A3A1;
  --dark-accent: #F24F00;
  --placeholder: #1F1E1E;
  --band: #000000;
  --live: #86EFAC;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ground); line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--dark-accent); outline-offset: 2px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.mono { font-family: var(--mono); }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--black); border-bottom: 1px solid #2E2C2B; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.nav a { color: var(--on-black); text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.btn { display: inline-block; text-decoration: none; padding: 14px 22px; border-radius: 6px; font-weight: 600; font-size: 16px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.nav .btn { color: var(--on-accent); padding: 12px 18px; font-size: 15px; }
.nav .btn:hover { text-decoration: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { flex: 1 1 420px; min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.hero-figure figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Credentials strip */
.creds { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.cred { display: flex; flex-direction: column; gap: 4px; }
.cred strong { font-size: 28px; }
.cred span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.8; }

/* Products (dark band) */
.dark { background: var(--dark); color: var(--ink); }
.dark .eyebrow { color: var(--dark-accent); }
.dark h2 { color: var(--ink-strong); }
.dark .section-head p { font-size: 18px; line-height: 1.6; color: var(--dark-muted); }
.product { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product h3 { font-family: var(--mono); font-size: 24px; color: var(--ink-strong); }
.product .kind { font-size: 15px; color: var(--dark-muted); font-weight: 500; }
.product p { font-size: 16px; line-height: 1.6; color: var(--dark-text); }
.product a { color: var(--dark-accent); font-weight: 600; text-decoration: none; margin-top: auto; }
.product a:hover { text-decoration: underline; }
.badge { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.badge-demo { color: var(--dark-accent); }
.badge-dev { color: var(--dark-muted); }
.badge-live { color: var(--live); }

/* Process */
.step { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ink); padding-top: 18px; }
.step .num { font-family: var(--mono); font-size: 14px; color: var(--accent-text); }
.step h3 { font-size: 20px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* About */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 88px; padding-bottom: 88px; }
.about-photo { flex: 0 1 320px; min-width: 0; aspect-ratio: 4 / 5; background: var(--placeholder); border: 1px dashed var(--line-strong); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: center; padding: 16px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.about-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-copy p { font-size: 18px; line-height: 1.7; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 13px; padding: 0; margin: 0; list-style: none; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-copy > p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.contact-lines { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.contact-lines a { font-weight: 600; }
.contact-lines span { color: var(--muted); }
.form { flex: 1 1 460px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--ground); color: var(--ink); min-height: 46px; }
.form textarea { resize: vertical; }
.form .note { font-size: 13px; color: var(--muted); }
.form .btn { align-self: flex-start; min-height: 48px; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--black); border-top: 1px solid #2E2C2B; color: var(--on-black-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.site-footer strong { color: #FFFFFF; font-size: 17px; display: block; margin-bottom: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.site-footer a { color: var(--on-black); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Simple pages (thanks, 404) */
.simple { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-top: 80px; padding-bottom: 80px; }
.simple h1 { font-size: clamp(32px, 5vw, 48px); }
.simple p { font-size: 18px; color: var(--muted); max-width: 560px; }

@media (max-width: 640px) {
  .nav { gap: 16px; }
  .hero { padding-top: 48px; }
  .section, .contact, .about .wrap { padding-top: 64px; padding-bottom: 64px; }
}

/* Hub (REV 0.2): app and service tiles linking out */
.hub-hero { padding-top: 88px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.hub-hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; max-width: 900px; }
.hub-hero .lead { max-width: 680px; }
.tiles { padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.tiles-label { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.tile { text-decoration: none; border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.tile-app { background: var(--dark); color: var(--dark-text); border: 1px solid var(--line); }
.tile-app:hover { color: var(--dark-text); outline: 2px solid var(--dark-accent); outline-offset: -2px; }
.tile-app .name { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--ink-strong); }
.tile-app .desc { font-size: 17px; line-height: 1.6; }
.tile-app .dest { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 14px; color: var(--dark-muted); }
.tile-app .dest b { color: var(--dark-accent); font-size: 20px; font-weight: 400; }
.tile-svc { background: var(--surface); color: var(--ink); border: 1px solid var(--line); min-height: 220px; padding: 28px; gap: 12px; }
.tile-svc:hover { color: var(--ink); border-color: var(--accent); }
.tile-svc .name { font-size: 22px; font-weight: 600; }
.tile-svc .desc { font-size: 16px; line-height: 1.6; color: var(--muted); }
.tile-svc .more { margin-top: auto; color: var(--accent-text); font-weight: 600; font-family: var(--mono); }
.svc-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.svc { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.svc h3 { font-size: 26px; line-height: 1.2; }
.svc p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.svc ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.8; }
.about-strip { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.about-strip p { font-size: 24px; line-height: 1.5; max-width: 900px; }
.contact-band { background: var(--surface); border-top: 1px solid var(--line); }
.contact-band .form { background: var(--ground); }

/* Brand (REV 0.3): logo images and links back to the main site */
.brand-logo { height: 40px; width: auto; display: block; }
.brand-sub { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-black-muted); border-left: 1px solid var(--line-strong); padding-left: 14px; }
.hero-logo { width: 560px; max-width: 100%; height: auto; display: block; margin-bottom: 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { height: 32px; width: auto; }
.home-link { font-family: var(--mono); font-size: 14px; color: var(--on-black-muted) !important; }
.svc .visit { font-family: var(--mono); font-size: 15px; font-weight: 600; }

/* Theme toggle (REV 0.4) */
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; color: var(--on-black); background: transparent; border: 1px solid var(--brand-grey); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { flex: none; }
.svc .since { font-family: var(--mono); font-size: 13px; color: var(--muted); }
