/* MediaFlowSwift — mediaflowswift.com */
:root {
  --paper: #f5f6f8;
  --paper-2: #ffffff;
  --ink: #171a20;
  --ink-2: #4a5160;
  --line: #d9dde5;
  --accent: #0b6e78;
  --accent-ink: #ffffff;
  --accent-soft: #dcefef;
  --good: #2e7d4f;
  --max: 68rem;
  --measure: 40rem;
  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12151b;
    --paper-2: #1b1f27;
    --ink: #eceff4;
    --ink-2: #a3aab8;
    --line: #2c323d;
    --accent: #5cc4cd;
    --accent-ink: #0d1418;
    --accent-soft: #163338;
    --good: #6fcf97;
  }
}
:root[data-theme="dark"] {
  --paper: #12151b;
  --paper-2: #1b1f27;
  --ink: #eceff4;
  --ink-2: #a3aab8;
  --line: #2c323d;
  --accent: #5cc4cd;
  --accent-ink: #0d1418;
  --accent-soft: #163338;
  --good: #6fcf97;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p, li { max-width: var(--measure); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav.menu { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav.menu a { color: var(--ink-2); text-decoration: none; font-size: 1rem; }
nav.menu a[aria-current="page"], nav.menu a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 4.5rem 0 3rem; }
.hero .kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--accent); margin: 0 0 1rem; }
.hero p.lead { font-size: 1.35rem; color: var(--ink-2); max-width: 36rem; }
.cta { display: inline-block; margin-top: 1.25rem; padding: 0.75rem 1.25rem; border-radius: 6px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.cta.quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); margin-left: 0.5rem; }
.note { font-size: 0.95rem; color: var(--ink-2); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.55); }
@media (max-width: 60rem) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; } }

/* How it works */
.how-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.side-photo { margin: 0; }
.side-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.side-photo figcaption { font-size: 0.95rem; color: var(--ink-2); margin-top: 0.5rem; }
@media (max-width: 60rem) { .how-intro { grid-template-columns: 1fr; } }

/* A photograph behind a tinted section, kept quiet enough to read over */
.photo-back { position: relative; isolation: isolate; background: var(--paper-2) url("images/memory-cards.jpg") center / cover no-repeat; }
.photo-back::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-2); opacity: 0.9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .photo-back::before { opacity: 0.86; } }
:root[data-theme="dark"] .photo-back::before { opacity: 0.86; }

/* Pipeline */
.pipeline { margin: 3rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.pipeline li { padding: 1rem 1rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pipeline li:last-child { border-right: 0; }
.pipeline .n { font-family: var(--display); font-size: 0.75rem; color: var(--ink-2); letter-spacing: 0.08em; }
.pipeline .name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0.15rem 0 0.25rem; }
.pipeline .what { display: block; font-size: 0.95rem; color: var(--ink-2); line-height: 1.35; }

/* Sections */
section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
section.tinted { background: var(--paper-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 2.5rem; margin-top: 1.5rem; }
.grid h3 { margin-bottom: 0.3em; }
.grid p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }

/* Promise */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.promise div { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; }
.promise strong { display: block; font-family: var(--display); }
.promise span { color: var(--ink-2); font-size: 1.02rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.plan { border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.5rem; background: var(--paper-2); }
.plan h3 { font-size: 1.4rem; }
.plan .tag { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.plan ul { padding-left: 1.1rem; margin: 0.75rem 0 0; color: var(--ink-2); font-size: 1.02rem; }
.plan li { margin: 0.25rem 0; }
.plan .price { font-family: var(--display); font-weight: 600; margin-top: 1rem; }

/* Article pages */
article.doc { padding: 3rem 0 4rem; }
article.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
article.doc h2 { font-size: 1.5rem; margin-top: 2.25rem; }
article.doc .updated { color: var(--ink-2); font-size: 0.95rem; }
article.doc table { border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 1rem; width: 100%; max-width: var(--max); }
article.doc th, article.doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-top: 1px solid var(--line); }
article.doc th { font-family: var(--display); font-weight: 600; }
.tablewrap { overflow-x: auto; }
dl.contact dt { font-family: var(--display); font-weight: 600; margin-top: 1rem; }
dl.contact dd { margin: 0.2rem 0 0; color: var(--ink-2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--ink-2); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .cta { transition: transform 120ms ease; }
  .cta:hover { transform: translateY(-1px); }
}

/* Plan comparison */
.compare-title { margin-top: 2.5rem; }
table.compare { border-collapse: collapse; width: 100%; max-width: var(--max); font-size: 1rem; margin-top: 0.75rem; }
table.compare th, table.compare td { text-align: left; padding: 0.55rem 0.75rem; border-top: 1px solid var(--line); vertical-align: top; }
table.compare th { font-family: var(--display); font-weight: 600; }
table.compare th:nth-child(n+2), table.compare td:nth-child(n+2) { text-align: center; width: 7rem; color: var(--accent); font-weight: 600; }
table.compare td.group { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-top: 1.1rem; text-align: left; }

/* Manual (generated from the app's Help) */
article.manual h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: 2.5rem; }
article.manual h1:first-of-type { margin-top: 0; }
article.manual h2 { font-size: 1.6rem; margin-top: 2.25rem; }
article.manual h3 { font-size: 1.15rem; margin-top: 1.5rem; }
article.manual ul, article.manual ol { padding-left: 1.3rem; }
article.manual li { margin: 0.25rem 0; }
article.manual blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 3px solid var(--accent); background: var(--paper-2); color: var(--ink-2); }
article.manual blockquote p { margin: 0; }
article.manual code { font-size: 0.95em; background: var(--paper-2); padding: 0.05em 0.3em; border-radius: 3px; }
article.manual hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
article.manual table { border-collapse: collapse; margin: 1rem 0; font-size: 1rem; }
article.manual th, article.manual td { text-align: left; padding: 0.5rem 0.7rem; border-top: 1px solid var(--line); vertical-align: top; }
