/* mydecisions.ai
   Indigo ink, a selvedge-red stitch, and Archivo's width axis for display type.
   The home page is graphics-first: inline SVG drawn with the tokens below, so
   every graphic follows light and dark mode. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-00dc9871.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #f7f8fb;
  --surface: #e9eef7;
  --ink: #1b2650;
  --muted: #4d5878;
  --rule: #c3cce0;
  --accent: #b82838;
  --tint: #fbeaec;
  --card: #ffffff;
  --track: #e2e7f1;
  --deep: #1b2650;
  --on-deep: #f7f8fb;
  --shadow: 0 1px 2px rgb(16 24 64 / 0.06), 0 18px 48px -18px rgb(16 24 64 / 0.28);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1630;
    --surface: #162045;
    --ink: #e7ecf7;
    --muted: #a7b1cd;
    --rule: #34437a;
    --accent: #ff8a93;
    --tint: #2a1d3a;
    --card: #141d3d;
    --track: #27335f;
    --deep: #1d2a5c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 48px -18px rgb(0 0 0 / 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

p,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface);
  padding: 0.1em 0.3em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}


/* Frame */

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

.wordmark {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  text-decoration-color: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration-color: var(--accent);
}

main {
  display: block;
}

.site-footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--ink);
}

/* Home */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  padding-block: clamp(2.5rem, 7vw, 5rem) 0;
  text-align: center;
}

.hero > .wrap {
  display: grid;
  justify-items: center;
}

.hero h1 {
  max-width: 15em;
  font-size: clamp(2.25rem, 1rem + 4.4vw, 4.125rem);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero .lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Launch status: plain text between two short lengths of the loop's red stitch. */
.launch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: balance;
}

.launch::before,
.launch::after {
  content: "";
  flex: none;
  width: 1.75rem;
  border-top: 2px dashed var(--accent);
}

/* Too narrow for one line: a single length of stitch above the text. */
@media (max-width: 34rem) {
  .launch {
    flex-direction: column;
    gap: 0.625rem;
  }

  .launch::after {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--accent));
}

.btn-quiet {
  border-color: var(--rule);
  background: var(--card);
}

.btn-quiet:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--on-deep);
  color: var(--deep);
  overflow-wrap: anywhere;
}

.btn-light:hover {
  background: color-mix(in srgb, var(--on-deep) 88%, var(--accent));
}

.btn-icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.btn-icon .icon {
  color: inherit;
}

/* Screenshots: the app's own screens on a framed stage. */

.shot-hero {
  margin-block: clamp(2.5rem, 6vw, 4rem) 0;
}

.stage {
  padding: clamp(0.625rem, 3vw, 2.5rem);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--tint), transparent 62%),
    var(--surface);
}

.shot {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot-hero .caption {
  margin-inline: auto;
  text-align: center;
}

.band {
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.sources {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.band-title,
.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band-title {
  color: var(--muted);
}

.kicker {
  color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.625rem;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-stretch: 112%;
  font-weight: 700;
}

.band-note {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section h2 {
  max-width: 22em;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.caption {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Figures: inline SVG drawn with the page's color tokens. */

.fig {
  margin: 1.75rem 0 0;
}

.fig svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.fig svg text {
  font-family: var(--font);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.f-ink { fill: var(--ink); }
.f-muted { fill: var(--muted); }
.f-accent { fill: var(--accent); }
.f-paper { fill: var(--paper); }
.f-card { fill: var(--card); }
.f-track { fill: var(--track); }
.f-tint { fill: var(--tint); }
.k-ink { stroke: var(--ink); }
.k-muted { stroke: var(--muted); }
.k-rule { stroke: var(--rule); }
.k-accent { stroke: var(--accent); }
.k-paper { stroke: var(--paper); }
.line { fill: none; }
.t-b { font-weight: 700; }
.t-d { font-weight: 800; font-stretch: 112%; }

.icon {
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill,
.icon-solid {
  fill: currentColor;
}

.icon-solid {
  stroke: none;
}

.icon-star {
  color: var(--accent);
}

/* The loop: the forward path is solid ink, the return path is a red stitch.
   A tall version for narrow screens, a wide one from 56rem. */

.loop-wide {
  display: none;
}

.loop-tall {
  max-width: 24rem;
}

@media (min-width: 56rem) {
  .loop-wide {
    display: block;
  }

  .loop-tall {
    display: none;
  }
}

/* Features: text beside a screenshot, alternating sides from 64rem. */

.row {
  display: grid;
  gap: 1.75rem 4rem;
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.row + .row {
  border-top: 1px solid var(--rule);
}

.row h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.row-text > p:not(.kicker) {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted);
}

.ticks {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.875rem;
}

.ticks li::before,
.ticks li::after {
  content: "";
  position: absolute;
}

.ticks li::before {
  left: 0;
  top: 0.3em;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.ticks li::after {
  left: 0.35rem;
  top: 0.58em;
  width: 0.45rem;
  height: 0.25rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.row-fig {
  margin: 0;
}

@media (min-width: 64rem) {
  .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .row.flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .row.flip .row-fig {
    order: -1;
  }
}

.cards-title {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-stretch: 112%;
}

.cards,
.principles {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}

:is(.card, .principles li) h3 {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
}

:is(.card, .principles li) p {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.card-icon {
  width: 2.375rem;
  height: 2.375rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--tint);
}

.card-icon .icon {
  color: var(--accent);
}

.tinted {
  background: var(--surface);
}

.principles {
  gap: 1.75rem 2rem;
}

.principles .card-icon {
  background: var(--card);
}

@media (min-width: 44rem) {
  .cards,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .principles {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Plans: three compact cards */

.plans {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.plan {
  display: grid;
  align-content: start;
  gap: 0.875rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}

.plan h3 {
  font-size: 1.1875rem;
  font-stretch: 112%;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price .amount {
  font-size: clamp(2.25rem, 2rem + 1.5vw, 3rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price .per {
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 0.375rem;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.plan li {
  position: relative;
  padding-left: 1.125rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 2px;
  background: var(--accent);
}

@media (min-width: 44rem) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-for {
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan-mark {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

/* FAQ: native details, no script. */

.faq {
  display: grid;
  gap: 1.5rem 4rem;
}

@media (min-width: 64rem) {
  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-25%) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(25%) rotate(-135deg);
}

.faq-list details p {
  max-width: 44rem;
  padding-bottom: 1.25rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list summary::after {
    transition: transform 0.2s ease;
  }
}

/* Closing band */

.cta {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.cta-box {
  display: grid;
  justify-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: 24px;
  background: var(--deep);
  color: var(--on-deep);
  text-align: center;
}

.cta h2 {
  max-width: 18em;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-stretch: 118%;
  font-weight: 800;
}

.cta p {
  max-width: 34rem;
  margin-top: 0.75rem;
  opacity: 0.85;
}

.cta .actions {
  opacity: 1;
}

/* Documents: privacy, DPA, support, 404 */

.draft-banner {
  background: var(--tint);
  border-block: 2px solid var(--accent);
}

.draft-banner .wrap {
  padding-block: 1rem;
}

.draft-banner p {
  max-width: 52rem;
  font-size: 0.9375rem;
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "toc" "body";
  gap: 0 4rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.doc-intro {
  grid-area: intro;
}

.doc-body {
  grid-area: body;
}

.doc-intro,
.doc-body {
  max-width: 42rem;
  min-width: 0;
}

.doc.single {
  grid-template-areas: "intro" "body";
}

.toc {
  grid-area: toc;
  margin-block: 2rem 0.5rem;
  padding-block: 1rem;
  border-block: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.toc ul {
  display: grid;
  gap: 0.3rem;
  padding: 0;
  list-style: none;
}

.toc a {
  text-decoration-color: transparent;
}

.toc a:hover {
  text-decoration-color: var(--accent);
}

@media (min-width: 64rem) {
  .doc {
    grid-template-columns: minmax(0, 42rem) 15rem;
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro toc" "body toc";
  }

  .doc.single {
    grid-template-columns: minmax(0, 42rem);
    grid-template-areas: "intro" "body";
  }

  .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    margin: 0.5rem 0 0;
    padding: 0 0 0 1.25rem;
    border-block: 0;
    border-left: 1px solid var(--rule);
  }
}

:is(.doc-intro, .doc-body) h1 {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

:is(.doc-intro, .doc-body) h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.3125rem, 1.1rem + 0.8vw, 1.625rem);
  font-stretch: 112%;
}

:is(.doc-intro, .doc-body) h3 {
  margin-top: 2rem;
  font-size: 1.1875rem;
}

:is(.doc-intro, .doc-body) h1,
:is(.doc-intro, .doc-body) h2,
:is(.doc-intro, .doc-body) h3 {
  scroll-margin-top: 1.5rem;
}

:is(.doc-intro, .doc-body) :where(p, ul, ol, blockquote, .table-scroll, hr) {
  margin-top: 1rem;
}

:is(.doc-intro, .doc-body) h1 + p {
  margin-top: 1.25rem;
}

:is(.doc-intro, .doc-body) ul,
:is(.doc-intro, .doc-body) ol {
  padding-left: 1.4rem;
}

:is(.doc-intro, .doc-body) li + li {
  margin-top: 0.35rem;
}

:is(.doc-intro, .doc-body) li > :is(ul, ol) {
  margin-top: 0.35rem;
}

:is(.doc-intro, .doc-body) blockquote {
  margin-inline: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

:is(.doc-intro, .doc-body) hr {
  margin-block: 3rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.table-scroll {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

:is(.doc-intro, .doc-body) table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

:is(.doc-intro, .doc-body) th,
:is(.doc-intro, .doc-body) td {
  padding: 0.625rem 1rem 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

:is(.doc-intro, .doc-body) th {
  font-weight: 700;
}

:is(.doc-intro, .doc-body) .lead {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.5;
}

:is(.doc-intro, .doc-body) .email-line {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-stretch: 112%;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-header nav,
  .skip,
  .toc {
    display: none;
  }

  .doc {
    display: block;
  }
}
