/* Trymmer website. Brand: brick coral, handle yellow, film charcoal, sunset frames. */

:root {
  --coral: #c94a30;
  --coral-text: #b8432b;
  --coral-deep: #9e3620;
  --coral-bright: #e2694c;
  --yellow: #ffd60a;
  --charcoal: #1c1c22;
  --sky-top: #ff9a6b;
  --sky-bottom: #ffe2c4;
  --hills: #6e9a5b;

  --bg: #fdf7f5;
  --bg-raised: #ffffff;
  --bg-tint: #f7e8e5;
  --text: #1d1d1f;
  --text-2: #5c5c62;
  --line: #ecd8d3;
  --code-bg: #f3e6e2;
  --shadow: 0 1px 2px rgba(60, 20, 10, 0.06), 0 8px 24px rgba(60, 20, 10, 0.08);

  --radius: 14px;
  --max: 1080px;
  --prose: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --coral-text: #f08a70;
    --bg: #151418;
    --bg-raised: #1f1d23;
    --bg-tint: #2a1d1b;
    --text: #f2f0ef;
    --text-2: #a9a4a3;
    --line: #36302f;
    --code-bg: #2b2626;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id] { scroll-margin-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--text); background: var(--bg-tint); }
.site-nav a[aria-current="page"] { color: var(--coral-text); font-weight: 600; }

/* Hero */

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 50% -100px, color-mix(in srgb, var(--coral) 16%, transparent), transparent 70%);
  text-align: center;
}
.hero-icon { width: 128px; height: 128px; margin: 0 auto 24px; filter: drop-shadow(0 10px 24px rgba(158, 54, 32, 0.25)); }
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero .lede {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 28px;
}
.platforms { color: var(--text-2); font-size: 15px; margin-top: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
}
.button:hover { background: var(--coral-deep); text-decoration: none; }
.button.secondary { background: var(--bg-raised); color: var(--text); border: 1px solid var(--line); }
.button.secondary:hover { background: var(--bg-tint); }
.button[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* The film strip illustration */

.strip {
  margin: 48px auto 0;
  max-width: 820px;
  position: relative;
  padding: 0 28px;
}
.film {
  background: var(--charcoal);
  border-radius: 10px;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
  gap: 8px;
  position: relative;
  box-shadow: var(--shadow);
}
.film::before, .film::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 10px, transparent 10px 22px);
  border-radius: 2px;
}
.film::before { top: 4px; }
.film::after { bottom: 4px; }
.frame {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 38%, #fff6e0 0 8%, transparent 9%),
    linear-gradient(transparent 62%, var(--hills) 62%),
    linear-gradient(var(--sky-top), var(--sky-bottom));
}
.frame.day {
  background:
    radial-gradient(circle at 30% 30%, #fffbe8 0 8%, transparent 9%),
    linear-gradient(transparent 60%, #5f8f4e 60%),
    linear-gradient(#6fb2e6, #cfe8f7);
}
.frame.dusk {
  background:
    radial-gradient(circle at 62% 30%, #f4ecff 0 6%, transparent 7%),
    linear-gradient(transparent 64%, #3f5a48 64%),
    linear-gradient(#5a4a8c, #d98fa0);
}
.frame.cut { opacity: 0.28; filter: grayscale(0.6); }
.strip-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
}
.film-out { width: calc(5 / 9 * 100% + 4px); margin: 0 auto; }
.strip-arrow { color: var(--yellow); width: 28px; height: 28px; margin: 14px auto 6px; }
.strip-arrow svg { width: 100%; height: 100%; }
@media (prefers-color-scheme: light) { .strip-arrow { color: #d4a800; } }
.film > * { grid-row: 1; }
.keep {
  grid-column: 2 / 5;
  margin: -12px -8px;
  border: 4px solid var(--yellow);
  border-left-width: 14px;
  border-right-width: 14px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.strip-caption { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 14px; }

/* Sections */

section { padding: 56px 0; }
section.tinted { background: var(--bg-tint); }
h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; }
.section-sub { color: var(--coral-text); font-size: 20px; font-weight: 600; margin: -4px 0 14px; max-width: 680px; }
.section-lede { color: var(--text-2); font-size: 19px; margin: 0 0 32px; max-width: 680px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral-text);
}
.card .glyph svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.split ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); }
.split li { margin: 4px 0; }

/* Prose pages (help, privacy, support) */

.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.page .meta { color: var(--text-2); margin: 0 0 32px; }
.page h2 { margin-top: 48px; padding-top: 8px; }
.page h3 { font-size: 19px; margin: 28px 0 6px; }
.page p, .page li { color: var(--text); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.note {
  border-left: 4px solid var(--yellow);
  background: var(--bg-tint);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.note p { margin: 0; }

kbd {
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}
code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: var(--code-bg); padding: 2px 5px; border-radius: 5px; }

.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--text-2); font-weight: 600; }

.toc {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 16px;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2 240px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }

details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 6px 0; }

.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.contact-card p { margin: 0 0 12px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--text-2);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .hero-icon { width: 104px; height: 104px; }
  .strip { padding: 0 12px; }
  .keep { margin: -12px -6px; border-left-width: 10px; border-right-width: 10px; }
  .film { gap: 5px; }
  .site-footer nav { margin-left: 0; }
}

/* Combine clips of any size */

.combine-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .combine-wrap { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: 12px 0; color: var(--text-2); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 3px solid var(--yellow);
}
.combine { margin: 0; }
.combine-in { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.clip { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.clip span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.clip .frame { border-radius: 6px; box-shadow: var(--shadow); }
.frame.tall { aspect-ratio: 9 / 16; }
.combine .film { max-width: 420px; margin: 0 auto; }
.frame.boxed { background: #000; display: flex; justify-content: center; }
.frame.boxed .frame { height: 100%; border-radius: 0; }

/* Info panel mock */
.info-mock { margin: 0 auto; width: 100%; max-width: 380px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.info-head { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.info-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--line); border-radius: 8px; padding: 2px; font-size: 13px; font-weight: 600; text-align: center; }
.info-tabs span { padding: 3px 0; border-radius: 6px; color: var(--text-2); }
.info-tabs .on { background: var(--bg-raised); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.info-pick { align-self: flex-start; font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-raised); }
.info-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 16px; margin: 0; padding: 4px 16px 16px; }
.info-body dt { color: var(--text-2); }
.info-body dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.info-body .info-sec { color: var(--text); font-weight: 700; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.info-body .info-sec:first-child { border-top: none; }
.info-body .info-sum { color: var(--text-2); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.info-body .info-sec:first-child + .info-sum { border-top: none; }
.info-body mark { background: var(--yellow); color: #1c1c22; border-radius: 4px; padding: 0 5px; font-weight: 600; }

/* Comparison */
.vs { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.vs-head, .vs-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 18px 24px; }
.vs-head { padding-top: 14px; padding-bottom: 14px; background: var(--bg-tint); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.vs-head span:last-child { color: var(--coral-text); }
.vs-row { border-top: 1px solid var(--line); align-items: start; }
.vs-row h3 { margin: 0; font-size: 17px; }
.vs-row p { margin: 0; font-size: 16px; position: relative; padding-left: 28px; }
.vs-them { color: var(--text-2); }
.vs-them::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 2px; border-radius: 1px; background: var(--text-2); opacity: 0.6; }
.vs-us::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 5px; border: 3px solid var(--yellow); box-sizing: border-box; }
.vs-us em { font-style: normal; font-weight: 700; }
.vs-label { display: none; }
@media (max-width: 760px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 16px; }
  .vs-head + .vs-row { border-top: none; }
  .vs-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; color: var(--text-2); }
  .vs-us .vs-label { color: var(--coral-text); }
}

/* Screenshots */
.hero-shot { display: block; max-width: 1040px; margin: 20px auto 4px; }
.hero-shot img { width: 100%; }

.shot-row { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: center; margin: 48px 0 0; }
.shot-row img { width: 100%; filter: drop-shadow(0 12px 28px rgba(60, 20, 10, 0.18)); }
.shot-row h3 { margin: 0 0 8px; font-size: 22px; }
.shot-row p { margin: 0; color: var(--text-2); font-size: 17px; }
@media (max-width: 760px) { .shot-row { grid-template-columns: 1fr; gap: 24px; } }

/* iPad behind, Mac window in front, overlapping. */
.devices { display: grid; grid-template-columns: repeat(12, 1fr); max-width: 920px; margin: 0 auto 36px; }
.devices picture { grid-row: 1; }
.device-ipad { grid-column: 1 / 8; align-self: start; }
.device-ipad img { width: 100%; border: clamp(5px, 1.1vw, 11px) solid #16151a; border-radius: clamp(10px, 2.2vw, 24px); box-shadow: var(--shadow); }
.device-mac { grid-column: 5 / 13; align-self: end; margin-top: 17%; }
.device-mac img { width: 100%; }

/* Speed bars */
.speed { margin: 48px 0 0; }
.speed h3, .compare h3 { margin: 0 0 6px; font-size: 22px; }
.speed-sub { margin: 0 0 18px; color: var(--text-2); font-size: 17px; }
.bars { margin: 0; display: grid; gap: 14px; max-width: 820px; }
.bar dt { font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.bar dd { margin: 0; display: flex; align-items: center; gap: 12px; }
.bar-fill { display: block; height: 22px; border-radius: 6px; background: var(--line); min-width: 6px; width: calc((100% - 130px) * var(--f)); }
.bar-win .bar-fill { background: var(--coral); }
.bar-win dt, .bar-win .bar-num { color: var(--coral-text); }
.bar-num { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars.wait .bar-fill { width: 6px; }
.bars.run .bar-fill { transition: width var(--t) linear; }
.fine { margin: 16px 0 0; color: var(--text-2); font-size: 14px; max-width: 760px; }
@media (prefers-color-scheme: dark) { .bar-fill { background: #4a4144; } }

/* Before-and-after divider */
.compare { margin: 48px 0 0; }
.compare-frame { --pos: 50%; position: relative; max-width: 900px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; margin-top: 12px; }
.compare-frame img { width: 100%; }
.compare-top { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.6); pointer-events: none; }
.compare-tag-l { left: 12px; background: var(--coral); }
.compare-tag-r { right: 12px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--yellow); pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c22' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare-frame:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.compare figcaption { margin-top: 12px; color: var(--text-2); font-size: 15px; max-width: 900px; }
@media (max-width: 560px) { .compare-tag { font-size: 11px; padding: 3px 8px; } }

/* Theme strip */
.themes { display: grid; gap: 20px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.swatch-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.swatch:hover { border-color: var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); font-weight: 600; }
.swatch:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .swatch-dot { background: var(--cd); }
  .swatch:hover, .swatch[aria-pressed="true"] { border-color: var(--cd); }
  .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cd); }
}
.theme-shot { display: block; max-width: 980px; margin: 0 auto; }
.theme-shot img { width: 100%; }

/* Hero demo video. The window's corners are about 16px on a 1200 × 946 capture. */
.hero-demo { margin: 20px auto 4px; }
.hero-demo .hero-shot { margin: 0 auto; }
.hero-video { position: relative; max-width: 952px; margin: 28px auto 56px; }
.hero-video[hidden], .hero-shot[hidden] { display: none; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 946; border-radius: 1.34% / 1.69%; background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 22px 60px rgba(40, 12, 6, 0.32), 0 6px 18px rgba(40, 12, 6, 0.18); }
.hero-pause { position: absolute; right: 0; bottom: -44px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--bg-raised); display: grid; place-items: center; opacity: 0.8; }
.hero-pause:hover, .hero-pause:focus-visible { opacity: 1; }
.hero-pause:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hero-pause span { width: 10px; height: 12px; border-left: 3px solid var(--text-2); border-right: 3px solid var(--text-2); }
.hero-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 11px solid var(--text-2); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hero-pause[aria-pressed="true"] { width: auto; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 8px; opacity: 1; }
.hero-pause[aria-pressed="true"]::after { content: "Play demo"; font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); }
.hero-pause[aria-pressed="true"] span { margin-left: 0; }
