/* Shared styles for every app page in the portfolio (Mac and iOS apps).
   Each app page sets its own colours in a small :root block (see the THEME section below); everything else is shared.
   The look follows macOS: system font, pale page, white grouped cards with hairline seams, one accent colour for actions. */

:root {
  color-scheme: light;
  /* ---------- THEME: each app overrides these ---------- */
  --page: #F2F3F5;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --soft: #5E6166;
  --seam: rgba(0, 0, 0, 0.1);
  --accent: #0A64D6;
  --accent-hover: #0852B0;
  --panel: #1D1D1F;          /* the download panel; an app may use its signature surface here */
  --panel-ink: #E8E8ED;      /* secondary text on the panel */
  --sidebar: #E9EAEC;        /* the drawn sidebar of a Mac window frame */
  --sidebar-ink: #1D1D1F;
  /* ---------- shared ---------- */
  --radius: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; border-radius: 6px; }
h1, h2 { text-wrap: balance; letter-spacing: -0.02em; }
p, dd { text-wrap: pretty; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 150ms ease, transform 120ms ease; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 32px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--panel-ink); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 85%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--seam); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav nav a { color: var(--soft); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
/* the Teriannet mark links back to teriannet.com, then a bar, then the app's own name */
.nav .parent img { display: block; width: 28px; height: 26px; }
.nav .sep { width: 1px; height: 20px; margin: 0 -12px; background: var(--soft); opacity: 0.5; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; text-align: center; }
.hero-icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 22px; }
.hero h1 { max-width: 18ch; margin: 0 auto; font-size: clamp(36px, 5vw, 56px); line-height: 1.07; font-weight: 700; }
.lead { max-width: 40em; margin: 18px auto 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 28px; }
.meta { font-size: 14px; color: var(--soft); }
.soon { font-weight: 600; color: var(--accent); margin: 0; }
.note { margin-top: 14px; font-size: 13px; color: var(--soft); }

/* ---------- a Mac window: drawn sidebar (optional) beside a real screenshot of the content ---------- */
.window { display: grid; grid-template-columns: 1fr; margin-top: 56px; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(0, 0, 0, 0.16); background: var(--page); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3), 0 8px 20px -10px rgba(0, 0, 0, 0.18); text-align: left; }
.window:has(.window-side) { grid-template-columns: 196px 1fr; }
.window-side { background: var(--sidebar); color: var(--sidebar-ink); padding: 14px 10px; border-right: 1px solid rgba(0, 0, 0, 0.3); font-size: 13px; }
.lights { display: flex; gap: 8px; padding: 2px 6px 22px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 16px; font-weight: 600; font-size: 14px; }
.side-brand img { border-radius: 5px; }
.window-side li { padding: 6px 10px; border-radius: 6px; opacity: 0.85; }
.window-side li.on { background: rgba(255, 255, 255, 0.16); opacity: 1; font-weight: 500; }
.window-shot { width: 100%; }

/* ---------- feature rows: text beside a screenshot, alternating sides ---------- */
.features { display: grid; gap: 24px; padding-bottom: 24px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; padding: 40px; background: var(--card); border: 1px solid var(--seam); border-radius: var(--radius); }
.row.flip .row-text { order: 2; }
.row h2 { font-size: 28px; line-height: 1.15; font-weight: 700; }
.row p { margin-top: 12px; color: var(--soft); }
.shot { overflow: hidden; border-radius: 10px; border: 1px solid var(--seam); background: var(--page); }
.shot-sheet { justify-self: center; width: min(100%, 420px); border-radius: 12px; }
.chips { display: grid; gap: 6px; margin-top: 18px; font-size: 15px; }
.chips li { display: flex; align-items: center; gap: 10px; }
.chips i { width: 18px; height: 11px; border-radius: 2px; }

/* ---------- grouped list of smaller points, like a macOS form ---------- */
.more { padding: 56px 0 24px; }
.section-title { font-size: 28px; line-height: 1.15; font-weight: 700; margin-bottom: 20px; }
.list { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--seam); border-radius: var(--radius); overflow: hidden; }
.list > div { padding: 20px 24px; border-bottom: 1px solid var(--seam); }
.list > div:nth-child(odd) { border-right: 1px solid var(--seam); }
.list > div:nth-last-child(-n+2) { border-bottom: 0; }
.list dt { font-weight: 600; }
.list dd { margin-top: 4px; color: var(--soft); font-size: 15px; }

/* ---------- download panel and requirements ---------- */
.get { padding: 56px 0 24px; }
.panel { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px 36px; border-radius: var(--radius); background: var(--panel); color: #fff; }
.panel img { border-radius: 16px; }
.panel h2 { font-size: 28px; line-height: 1.15; font-weight: 700; }
.panel p { margin-top: 6px; color: var(--panel-ink); }
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; background: var(--card); border: 1px solid var(--seam); border-radius: var(--radius); overflow: hidden; }
.reqs > div { padding: 16px 20px; border-right: 1px solid var(--seam); }
.reqs > div:last-child { border-right: 0; }
.reqs dt { font-size: 13px; color: var(--soft); }
.reqs dd { margin-top: 2px; font-weight: 500; }

/* ---------- questions ---------- */
.faq { padding: 56px 0 64px; }
.faq-list { background: var(--card); border: 1px solid var(--seam); border-radius: var(--radius); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--seam); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(-45deg); transition: transform 180ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 24px 18px; max-width: 62ch; color: var(--soft); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 24px 0 40px; border-top: 1px solid var(--seam); font-size: 13px; color: var(--soft); }
.foot .brand { font-size: 14px; }
/* the link back to teriannet.com, with the Teriannet Group Inc. logo, sits at the right end of the footer */
.foot .parent { margin-left: auto; }
.foot .parent img { display: block; width: 83px; height: 26px; }
.foot span:last-child { margin-left: auto; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .row, .row.flip { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .row.flip .row-text { order: 0; }
  .window:has(.window-side) { grid-template-columns: 150px 1fr; }
  .reqs { grid-template-columns: 1fr 1fr; }
  .reqs > div:nth-child(2) { border-right: 0; }
  .reqs > div:nth-child(-n+2) { border-bottom: 1px solid var(--seam); }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding: 40px 0 48px; }
  .hero-icon { width: 76px; height: 76px; border-radius: 18px; }
  .window, .window:has(.window-side) { grid-template-columns: 1fr; margin-top: 36px; }
  .window-side { display: none; }
  .row, .row.flip { padding: 22px; }
  .row h2, .section-title, .panel h2 { font-size: 24px; }
  .list { grid-template-columns: 1fr; }
  .list > div:nth-child(odd) { border-right: 0; }
  .list > div:nth-last-child(2) { border-bottom: 1px solid var(--seam); }
  .panel { grid-template-columns: 1fr; padding: 28px 24px; }
  .panel .btn { justify-self: start; }
  .foot span:last-child { margin-left: 0; }
  .foot .parent { margin-left: 0; }
}
