/* Arkpine Software. One stylesheet, no external fonts, no scripts. Light and dark follow the system setting.
   Palette: deep blue with a warm amber accent (the trunk in the logo). */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #121a2b;
  --muted: #556079;
  --line: #dde3ee;
  --accent: #2457d6;
  --accent-strong: #1a41a8;
  --accent-soft: #e4ecfd;
  --amber: #b9771f;
  --amber-soft: #fbefd9;
  --hero-1: #0b1f45;
  --hero-2: #1d4fb8;
  --on-hero: #f3f6fd;
  --on-hero-muted: #bccbe8;
  --focus: #2457d6;
  --shadow: 0 1px 2px rgba(15, 25, 55, .06), 0 8px 24px rgba(15, 25, 55, .08);
  --shadow-lift: 0 2px 4px rgba(15, 25, 55, .08), 0 18px 40px rgba(15, 25, 55, .14);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a2e;
    --surface-2: #16203a;
    --text: #e6ecf8;
    --muted: #9aa8c4;
    --line: #243050;
    --accent: #7fa8ff;
    --accent-strong: #a5c1ff;
    --accent-soft: #1a2747;
    --amber: #f0b45c;
    --amber-soft: #2e2416;
    --hero-1: #060d1f;
    --hero-2: #13306f;
    --on-hero: #eef3fd;
    --on-hero-muted: #a9bbe0;
    --focus: #7fa8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.doc { max-width: 720px; }

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.home header.top { background: var(--hero-1); border-bottom-color: transparent; }
header.top .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.08rem; letter-spacing: -0.01em; }
.home .brand { color: var(--on-hero); }
.brand img { width: 30px; height: 30px; }
nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.home nav a { color: var(--on-hero-muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.home nav a:hover, .home nav a[aria-current="page"] { color: var(--on-hero); }

/* text pages (about, support, privacy, terms, 404) */
main.wrap { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 32px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 24px 0 6px; }
h4 { font-size: 1.1rem; margin: 0; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin-bottom: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--amber); color: #1d1406; box-shadow: 0 6px 18px rgba(185, 119, 31, .35); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(185, 119, 31, .45); }
.btn-ghost { color: var(--on-hero); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-light { background: #ffffff; color: #0f2a66; }
.btn-outline-light { color: #ffffff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 9px 16px; font-size: 0.93rem; }

/* hero */
.hero {
  background: radial-gradient(1100px 500px at 85% 10%, rgba(110, 160, 255, .28), transparent 60%),
              linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: var(--on-hero); overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 72px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 80px; padding-bottom: 96px; } }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--on-hero-muted); font-size: 0.85rem; font-weight: 600; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; color: var(--on-hero); }
.hero .hl { color: #f2c46d; }
.hero .lead { color: var(--on-hero-muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; padding: 0; margin: 0; }
.platforms li { margin: 0; font-size: 0.82rem; color: var(--on-hero-muted); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px 10px; }

.hero-art { position: relative; min-height: 260px; }
@media (min-width: 600px) { .hero-art { min-height: 360px; } }
.art { position: absolute; display: block; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); }
.art-back { width: 78%; top: 0; right: 0; transform: rotate(3deg); opacity: .9; }
.art-front { width: 84%; top: 18%; left: 0; transform: rotate(-2deg); z-index: 2; }
.art-small { width: 40%; bottom: -4%; right: 4%; transform: rotate(4deg); z-index: 3; }
@media (max-width: 959px) { .hero-art { max-width: 560px; margin: 0 auto; width: 100%; } }

/* trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 30px; padding-bottom: 30px; margin: 0 auto; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid li { margin: 0; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; }
.trust-grid svg { grid-row: span 2; color: var(--accent); margin-top: 2px; }
.trust-grid strong { font-size: 1rem; }
.trust-grid span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* products */
.products { padding-top: 64px; padding-bottom: 24px; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.025em; margin: 0 0 6px; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 8px; }
.group { font-size: 1.12rem; margin: 40px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.group-note { font-size: 0.9rem; font-weight: 500; color: var(--muted); }

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  margin: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* the four Workspace apps: two cards per row */
@media (min-width: 680px) { .cards-wide { grid-template-columns: 1fr 1fr; } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.card-head { display: flex; align-items: center; gap: 12px; }
.icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.tagline { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.card .what { margin: 0; flex: 1; }
.card .price { margin: 0; font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 0.82rem; border-radius: 999px; padding: 2px 10px; }
.actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.95rem; }
.actions a:not(.btn) { font-weight: 600; }
.soon { font-size: 0.8rem; font-weight: 600; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 2px 10px; }

/* principles */
.principles { padding-top: 48px; padding-bottom: 24px; }
.principle-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
@media (min-width: 800px) { .principle-grid { grid-template-columns: repeat(3, 1fr); } }
.principle-grid > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.principle-grid h3 { margin: 0 0 6px; font-size: 1.08rem; }
.principle-grid p { margin: 0; color: var(--muted); }

/* contact band */
.contact-band {
  margin: 48px 0 72px; padding: 32px; border-radius: 20px; color: #ffffff;
  background: linear-gradient(135deg, #0f2a66, #2457d6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.contact-band h2 { margin: 0 0 6px; font-size: 1.5rem; color: #ffffff; }
.contact-band p { margin: 0; color: #d6e2fb; max-width: 620px; }
.contact-band .cta-row { margin: 0; }

/* old card styles kept for any page that still uses them */
.points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.points li { margin: 0; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 32px; }
.contact h2 { margin-top: 0; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; background: var(--surface); }
footer .wrap { padding-top: 24px; padding-bottom: 32px; }
footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 0 0 10px; }
footer a { color: var(--muted); }
footer p { margin: 0 0 6px; }

@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  main.wrap { padding-top: 28px; }
  .contact-band { padding: 24px; }
  .hero-grid { padding-top: 40px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
