/* TalalTech — talaltech.thequreshico.ca
   One stylesheet for every page. Colours are tokens; dark mode redefines them. */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee7;
  --ink: #111a2e;
  --muted: #5a6376;
  --line: #e3e0d6;
  --brand: #0f1d3a;
  --brand-ink: #ffffff;
  --accent: #b9852a;
  --accent-soft: #f6ead2;
  --link: #1d4ed8;
  --shadow: 0 1px 2px rgba(17, 26, 46, .06), 0 8px 24px rgba(17, 26, 46, .06);
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1220;
    --surface: #131b2d;
    --surface-2: #1a2338;
    --ink: #eef1f7;
    --muted: #a3acc0;
    --line: #263049;
    --brand: #0a1426;
    --accent: #e0b25a;
    --accent-soft: #2c2616;
    --link: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- header & menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand); color: var(--accent); font: 700 19px/1 Georgia, "Times New Roman", serif;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-accent { color: var(--accent); }
.brand-svg { width: 42px; height: 37px; flex: none; }
.km-ring { stroke: var(--accent); }
.km-key { fill: var(--surface); stroke: var(--ink); }
.site-footer .km-key { fill: var(--brand); stroke: #fff; }
.site-footer .km-ring { stroke: #e0b25a; }
.site-footer .brand-accent { color: #e0b25a; }
.brand-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .drop-btn {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .drop-btn:hover { background: var(--surface-2); }
.nav > a[aria-current="page"], .nav .drop-btn.is-current { color: var(--accent); }
.chev { width: 10px; height: 10px; transition: transform .15s; }
.drop { position: relative; }
.drop-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 330px; padding: 8px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none;
}
.drop-menu.open { display: block; }
.drop-menu a {
  display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
}
.drop-menu a:hover, .drop-menu a:focus-visible { background: var(--surface-2); }
.drop-menu strong { display: block; font-size: 15px; }
.drop-menu span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; margin: auto; display: block; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .drop-btn { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 16px; }
  .drop-menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
}

/* ---------- app icons ---------- */
.app-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; object-fit: cover; }
.app-icon.lg { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.app-icon.mono {
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, #0f766e, #134e4a);
}
.app-icon.lg.mono { font-size: 44px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(224, 178, 90, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(80, 120, 220, .18), transparent 60%),
    var(--brand);
  color: var(--brand-ink);
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { color: #e0b25a; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 10px 0 16px; max-width: 16ch; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: #c9d0de; max-width: 58ch; margin: 0 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-art { display: grid; gap: 14px; }
.hero-chip {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}
.hero-chip:nth-child(2) { margin-left: 36px; }
.hero-chip strong { display: block; color: #fff; }
.hero-chip span { display: block; color: #aeb7c9; font-size: 14px; line-height: 1.35; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-chip:nth-child(2) { margin-left: 0; } .hero { padding: 64px 0 72px; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 15px;
  border: 1px solid transparent;
}
.btn-primary { background: #e0b25a; color: #1a1406; }
.btn-primary:hover { background: #ebc277; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.alt .card { background: var(--bg); box-shadow: none; }
.app-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.app-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.app-card h3 { margin: 0; font-size: 20px; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .more { margin-top: auto; font-weight: 700; color: var(--accent); }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.value-num { font: 700 14px/1 Georgia, serif; color: var(--accent); }

.cta-band { background: var(--surface-2); border-radius: var(--radius); padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; color: var(--muted); }
@media (prefers-color-scheme: light) { .cta-band .btn-primary { background: var(--brand); color: #fff; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 10px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose li { margin-bottom: 6px; }

/* ---------- app page ---------- */
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.app-hero h1 { margin: 0 0 6px; }
.app-hero .tagline { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 560px) { .app-hero { grid-template-columns: 1fr; } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 200px;
  padding: 10px 18px; border-radius: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid #000;
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; letter-spacing: .02em; opacity: .85; line-height: 1.2; }
.store-btn strong { display: block; font-size: 18px; line-height: 1.2; }
.store-btn.is-soon { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; }
.store-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 60ch; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 40px 0 0; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.features strong { display: block; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: 15px; }

/* the three drop-downs */
.accordion { display: grid; gap: 14px; margin-top: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.panel > summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 14px;
  font-size: 19px; font-weight: 700;
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary .ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); flex: none;
}
.panel > summary .ico svg { width: 18px; height: 18px; }
.panel > summary .sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.panel > summary .chev { margin-left: auto; width: 14px; height: 14px; }
.panel[open] > summary .chev { transform: rotate(180deg); }
.panel-body { padding: 0 24px 24px; border-top: 1px solid var(--line); }

.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq > summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; gap: 12px; justify-content: space-between; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 20px; line-height: 1; }
.faq[open] > summary::after { content: "–"; }
.faq > div { padding: 0 0 16px; color: var(--muted); }
.faq > div p { margin: 0 0 8px; }

.steps { counter-reset: step; list-style: none; padding: 8px 0 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #e0b25a; font-weight: 700; font-size: 15px;
}
.steps strong { display: block; }
.steps span { color: var(--muted); }

.policy { padding-top: 8px; }
.policy h3 { font-size: 18px; margin: 26px 0 8px; }
.policy p, .policy li { color: var(--ink); }
.policy-date { color: var(--muted); font-size: 14px; }
.policy-link { display: inline-block; margin-top: 16px; font-weight: 600; }

/* ---------- contact ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 22px; height: 22px; }
.big-mail { font-size: clamp(20px, 3vw, 26px); font-weight: 700; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--brand); color: #c9d0de; padding: 56px 0 28px; margin-top: 72px; }
.site-footer a { color: #e6eaf2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.foot-grid h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; font-size: 15px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-tag { background: rgba(224, 178, 90, .15); color: #e0b25a; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
