/* Shared styles for the Liamia task pages (apple-mail-mcp, claude-apple-mail,
   local-ai-apple-mail, voice-ask, compare). Tokens, buttons, header and footer match the
   home page's inline styles in index.html; keep the two in step when either changes. */

@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Display Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 100%; ascent-override: 96%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Text Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; ascent-override: 97%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --font-display: "Instrument Sans", "Display Fallback", system-ui, sans-serif;
  --font-text: "Geist", "Text Fallback", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-h1: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .38vw, 1.375rem);
  --fs-body: clamp(1rem, .97rem + .12vw, 1.0625rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms; --t-mid: 450ms; --t-slow: 800ms;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 64px;
  --r-card: 24px; --r-media: 28px;

  --bg: #e8ebed; --bg-2: #dde3e6; --raise: #f4f6f7; --line: #c3cdd2; --line-soft: #d3dbdf;
  --ink: #11171a; --ink-2: #39464d; --ink-3: #4f5d64;
  --accent: #60a8c0; --accent-deep: #2f6f85; --accent-ink: #2f6f85; --accent-wash: rgba(96, 168, 192, .16);
  --logo-liam: #0f2e40; --logo-ia: #176a94;
  --btn-bg: #2f6f85; --btn-ink: #f2f7f9; --btn-hover: #27606f;
  --trial: #17673f;
  --shadow: 0 30px 70px -36px rgba(30, 52, 62, .45);
  --sh-a: #e8ebed; --sh-b: #cfd8dc; --sh-c: #60a8c0; --sh-d: #2f6f85;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101416; --bg-2: #14181b; --raise: #1a2328; --line: #2a363d; --line-soft: #1f292e;
    --ink: #dde3e6; --ink-2: #a9b5bb; --ink-3: #8f9ca3;
    --accent-ink: #7cbcd2; --accent-wash: rgba(96, 168, 192, .14);
    --logo-liam: #cfe2eb; --logo-ia: #4fb8e6;
    --btn-bg: #60a8c0; --btn-ink: #06161b; --btn-hover: #7cbcd2;
    --trial: #4fd18b; --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
    --sh-a: #0e1214; --sh-b: #1a2328; --sh-c: #60a8c0; --sh-d: #2f6f85;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101416; --bg-2: #14181b; --raise: #1a2328; --line: #2a363d; --line-soft: #1f292e;
  --ink: #dde3e6; --ink-2: #a9b5bb; --ink-3: #8f9ca3;
  --accent-ink: #7cbcd2; --accent-wash: rgba(96, 168, 192, .14);
  --logo-liam: #cfe2eb; --logo-ia: #4fb8e6;
  --btn-bg: #60a8c0; --btn-ink: #06161b; --btn-hover: #7cbcd2;
  --trial: #4fd18b; --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --sh-a: #0e1214; --sh-b: #1a2328; --sh-c: #60a8c0; --sh-d: #2f6f85;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
:where([id]) { scroll-margin-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { position: relative; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent-ink); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 560; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { max-width: 100%; display: block; }
code, .mono { font-family: var(--font-mono); font-size: max(.92em, 13px); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--font-display); font-weight: 560; letter-spacing: -.04em; }

/* ---------- buttons: same component as the home page ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--font-text); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity var(--t-fast); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: .08; }
.btn:active { transform: scale(.98); }
.btn-md { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: color-mix(in srgb, var(--raise) 70%, transparent); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent-ink); }
.apple-mark { width: 14px; height: 17px; flex: none; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none; transition: background-color var(--t-fast), border-color var(--t-fast); } }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 20; height: var(--header); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.navbar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 600 17px/1 var(--font-display); letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.liamia-logo { font-weight: 700; color: var(--logo-liam); }
.liamia-logo .ll-acc { color: var(--logo-ia); }
.navlinks { display: flex; gap: 2px; align-items: center; }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 999px; transition: color var(--t-fast); }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--ink); }
.navlinks a[aria-current="page"] { background: var(--accent-wash); }
.theme-toggle { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--raise) 72%, transparent); color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle:hover { border-color: var(--accent-ink); }
@media (max-width: 960px) {
  :root { --header: 124px; }
  header.site { height: auto; }
  .navbar { height: auto; min-height: var(--header); flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .navlinks { order: 5; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a { flex: 0 0 auto; min-height: 44px; padding: 0 4px; font-size: 13px; white-space: nowrap; }
}

/* ---------- hero: the question and its two-sentence answer ---------- */
.hero { padding: clamp(36px, 8vh, 96px) 0 clamp(40px, 7vh, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); }
.crumbs a { color: var(--accent-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero h1 { margin-top: 18px; font-size: var(--fs-h1); line-height: .98; max-width: 16ch; }
.answer-lead { margin-top: 24px; max-width: 40rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.answer-lead strong { color: var(--ink); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 420px) { .ctas .btn { flex: 1 1 100%; } }
.updated { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; } }
.shot-frame { justify-self: center; width: 100%; max-width: 440px; }
.shot-frame img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--raise); }
.shot-frame figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .answer-lead, .ctas, .shot-frame { animation: fade-up var(--t-slow) var(--ease) both; }
  .answer-lead { animation-delay: 80ms; }
  .ctas { animation-delay: 160ms; }
  .shot-frame { animation-delay: 240ms; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* ---------- sections ---------- */
.band { padding: clamp(56px, 10vh, 112px) 0; border-top: 1px solid var(--line-soft); }
.kicker { font: 500 13px/1 var(--font-mono); letter-spacing: .02em; color: var(--accent-ink); }
.band h2 { margin-top: 14px; font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.035em; max-width: 22ch; }
.band-lead { margin-top: 16px; max-width: 42rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }

.steps { counter-reset: s; list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--r-card); background: var(--raise); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-ink); font: 600 16px/1 var(--font-display); }
.steps h3 { margin-top: 16px; font: 600 20px/1.25 var(--font-display); letter-spacing: -.015em; }
.steps p { margin-top: 8px; color: var(--ink-2); }

.nevers { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; max-width: 52rem; }
.nevers li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--raise) 70%, transparent); }
.nevers svg { width: 24px; height: 24px; color: var(--accent-ink); margin-top: 1px; }
.nevers b { display: block; color: var(--ink); font-weight: 600; }
.nevers span { color: var(--ink-2); }

.cols { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { padding: 24px; border-radius: var(--r-card); background: var(--raise); border: 1px solid var(--line); }
.card h3 { font: 600 19px/1.3 var(--font-display); letter-spacing: -.01em; }
.card p, .card li { color: var(--ink-2); }
.card p { margin-top: 8px; }
.card ul { margin: 10px 0 0; padding-left: 20px; }
.card li + li { margin-top: 6px; }
.cmd { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

.shots { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.compare-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.compare thead th { border-top: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.compare thead th:nth-child(2) { color: var(--accent-ink); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 18%; }
.compare td { color: var(--ink-2); }
.compare td:nth-child(2) { color: var(--ink); }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 60rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; max-width: 52rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; font: 560 clamp(17px, 1rem + .3vw, 20px)/1.3 var(--font-display); letter-spacing: -.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--t-mid) var(--ease); }
details[open] > summary::after { transform: rotate(225deg) translate(-3px, -3px); }
details::details-content { height: 0; overflow: clip; transition: height 280ms var(--ease), content-visibility 280ms allow-discrete; }
details[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) { details::details-content { transition: none; } summary::after { transition: none; } }
.faq-a { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

/* ---------- more guides ---------- */
.guides { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); }
.guides a { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 44px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--raise); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.guides a:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .guides a:hover { transform: none; } }
.guides b { font: 600 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.guides span { font-size: 14px; color: var(--ink-2); }

.finale { padding: clamp(64px, 11vh, 128px) 0; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, var(--accent-wash)); }
.finale h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.035em; max-width: 20ch; }
.finale p { margin-top: 14px; color: var(--ink-2); font-size: var(--fs-lead); max-width: 40rem; }

/* ---------- footer ---------- */
/* flow-root keeps the wordmark's bottom margin inside the footer, matching the home page. */
footer.site { position: relative; display: flow-root; overflow: clip; padding: clamp(40px, 7vh, 80px) 0 0; border-top: 1px solid var(--line-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--ink-3); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
/* Link text lines up with the brand text; the guides divider spans the content width only. */
.footer-guides { margin-top: 8px; padding-top: 8px; padding-inline: calc(var(--gutter) - 8px); background: linear-gradient(var(--line-soft), var(--line-soft)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer-row .footer-links { margin-inline: -8px; }
.wordmark { position: relative; min-height: 0; overflow: visible; margin: clamp(24px, 5vh, 56px) 0 clamp(20px, 3vh, 36px); padding-bottom: .06em; font: 600 clamp(3.5rem, 17.5vw, 15rem)/.98 var(--font-display); letter-spacing: -.045em; text-align: center; white-space: nowrap; }
.wordmark span { display: block; padding-top: .02em; color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(180deg, var(--ink) 8%, var(--accent) 70%, color-mix(in srgb, var(--accent) 72%, var(--bg)) 100%); }
