/* The comparison pages (vs/): the landing page's tokens, faces and chunky buttons (CutroomPalette,
   CutroomType), a sky hero card, the three-step mechanism, who each app fits, a feature table that
   stacks into cards on a phone, the FAQ and the footer's Compare links. */
:root {
  --ground: #f3f7ff;
  --card: #ffffff;
  --ink: #121521;
  --muted: #646d82;
  --accent: #2350ff;
  --accent-depth: #1534c4;
  --on-accent: #ffffff;
  --wash: #e6edff;
  --line: #e3e9f6;
  --tile-depth: #d3dbec;
  --mark: #ffe68f;
  --mark-depth: #e7c055;
  --on-mark: #121521;
  --sky-a: #2350ff;
  --sky-b: #2a8dff;
  --sky-c: #2fd0ff;
  --white-depth: #b5c8ff;
  --shadow: 0 1px 2px rgba(25, 45, 110, .06), 0 10px 26px rgba(25, 60, 170, .09);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a0e1b; --card: #161d33; --ink: #eef2ff; --muted: #9ba7c4; --accent: #6f8dff;
    --accent-depth: #3a54c4; --on-accent: #121521; --wash: #1d2747; --line: #252f4d;
    --tile-depth: #2e3858; --mark: #ffd84d; --mark-depth: #c79f22;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0a0e1b; --card: #161d33; --ink: #eef2ff; --muted: #9ba7c4; --accent: #6f8dff;
  --accent-depth: #3a54c4; --on-accent: #121521; --wash: #1d2747; --line: #252f4d;
  --tile-depth: #2e3858; --mark: #ffd84d; --mark-depth: #c79f22;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; border-radius: 12px; background: var(--card); font-weight: 600; }
.skip:focus { top: 12px; }
.appicon { display: block; flex: none; background: url("/icon.png") center / cover; }

.btn {
  --depth: var(--accent-depth);
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  padding: 17px 26px; border-radius: 18px; margin-bottom: 6px;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 var(--depth);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--depth); }
.btn-white { background: #ffffff; color: #2350ff; --depth: var(--white-depth); }
.btn-sm { font-size: 14px; padding: 12px 16px; border-radius: 14px; margin-bottom: 4px; box-shadow: 0 4px 0 var(--depth); }
.btn-sm:active { transform: translateY(4px); }

.top { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 27px/1 var(--display); letter-spacing: -.02em; }
.brand .appicon { width: 38px; height: 38px; border-radius: 11px; }
.top .btn { margin-left: auto; }

/* The sky hero card */
.hero {
  position: relative; overflow: clip; color: #ffffff; border-radius: 44px;
  padding: clamp(28px, 6vw, 60px);
  background: linear-gradient(115deg, var(--sky-a) 0%, var(--sky-a) 30%, var(--sky-b) 66%, var(--sky-c) 100%);
}
.hero::after { content: ""; position: absolute; right: -110px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero :focus-visible { outline-color: #ffffff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 22px; padding: 0; list-style: none; font: 600 14px/1.3 var(--body); color: rgba(255, 255, 255, .88); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .7; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { margin: 0 0 10px; font: 600 15px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.hero .eyebrow { color: #ffffff; opacity: .9; }
.hero h1 { margin: 0; max-width: 20ch; font: 700 clamp(38px, 6.4vw, 70px)/.98 var(--display); letter-spacing: -.02em; }
.hl { display: inline-block; background: var(--mark); color: var(--on-mark); padding: 0 .14em .04em; border-radius: .16em; rotate: -2deg; box-shadow: 0 .07em 0 var(--mark-depth); }
.lede { margin: 22px 0 0; max-width: 46ch; font: 500 19px/1.5 var(--body); }
.hero .btn { margin-top: 28px; }
.hero .fine { margin: 12px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .88); }

/* Sections */
.sec { padding-top: clamp(48px, 7vw, 80px); }
.sec-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; font: 700 clamp(30px, 4.4vw, 46px)/1.05 var(--display); letter-spacing: -.02em; }
.sec-head p { margin: 0; color: var(--muted); }

/* Talk, tap, post */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); border-bottom-width: 6px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-depth); font: 700 21px/1 var(--display);
}
.steps b { font: 700 24px/1.1 var(--display); }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Who each app fits */
.fits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fit { padding: 24px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.fit.ours { background: var(--wash); box-shadow: none; }
.fit h3 { margin: 0 0 12px; font: 700 23px/1.15 var(--display); }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fit li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.45; }
.fit li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 2.9 6-6.4' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.fit:not(.ours) li::before { background-color: var(--muted); }
.not-for { margin: 18px 0 0; color: var(--muted); font-size: 15.5px; }
.not-for strong { color: var(--ink); }

/* Feature table: a table on wide screens, one card per feature on a phone */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 2px solid var(--line); }
.table thead th { border-top: 0; font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table thead th:nth-child(2) { color: var(--accent); }
.table th[scope="row"] { width: 34%; font: 500 16px/1.4 var(--body); }
.table td { width: 33%; }
.group th { padding-top: 22px; background: var(--wash); font: 700 19px/1.2 var(--display); color: var(--accent); }
.cell { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font: 600 15.5px/1.35 var(--body); }
.cell::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background-position: center; background-size: 22px; background-repeat: no-repeat; }
.cell small { grid-column: 2; display: block; margin-top: 2px; font: 400 14px/1.4 var(--body); color: var(--muted); }
.yes::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 2.9 6-6.4' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.limited::before { background-color: var(--mark); box-shadow: inset 0 0 0 2px var(--mark-depth); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8' stroke='%23121521' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.none { color: var(--muted); font-weight: 500; }
.none::before { box-shadow: inset 0 0 0 2px var(--line); }
.source { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
.source a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { padding: 18px 22px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); border-bottom-width: 5px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 600 19px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font: 700 24px/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Send-off */
.send { display: grid; gap: 14px; justify-items: start; }
.send h2 { margin: 0; max-width: 20ch; font: 700 clamp(32px, 5vw, 56px)/1 var(--display); letter-spacing: -.02em; }
.send p { margin: 0; max-width: 44ch; font: 500 18px/1.5 var(--body); }
.send .btn { margin-top: 10px; }

/* All comparisons (the /vs/ index) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards a { display: grid; gap: 6px; height: 100%; padding: 22px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); border-bottom-width: 6px; text-decoration: none; }
.cards a:hover { border-color: var(--accent); }
.cards b { font: 700 24px/1.1 var(--display); }
.cards span { color: var(--muted); font-size: 15.5px; }

footer { margin-top: clamp(56px, 8vw, 96px); padding-block: 28px 48px; border-top: 2px solid var(--line); }
.foot-compare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin-bottom: 22px; font-size: 15px; }
.foot-compare h2 { margin: 0; font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-compare a { font-weight: 600; text-decoration: none; }
.foot-compare a:hover, .foot-compare a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; color: var(--muted); font-size: 15px; }
.foot-in .brand { color: var(--ink); font-size: 23px; }
.foot-in .brand .appicon { width: 32px; height: 32px; border-radius: 9px; }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .steps, .fits, .cards { grid-template-columns: minmax(0, 1fr); }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: auto; }
  .table thead { display: none; }
  .table { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .table tbody { display: grid; gap: 10px; margin-top: 22px; }
  .table tbody:first-of-type { margin-top: 0; }
  .table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 16px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
  .table tr.group { display: block; padding: 0; background: none; box-shadow: none; }
  .table th, .table td { padding: 0; border: 0; }
  .group th { padding: 0; background: none; font-size: 22px; }
  .table th[scope="row"] { grid-column: 1 / -1; width: auto; font-weight: 600; }
  .table td { width: auto; }
  .table td::before { content: attr(data-app); display: block; margin-bottom: 6px; font: 600 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .table td:first-of-type::before { color: var(--accent); }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .hero { border-radius: 32px; }
  .lede { font-size: 17px; }
  .hero .btn { width: 100%; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
