@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mat: #2E3338;
  --mat-deep: #23272B;
  --paper: #F5F5F3;
  --paper-2: #E6E6E3;
  --ink: #24282C;
  --ink-2: #565D63;
  --red: #D93036;
  --red-text: #C2272D;
  --display: Fredoka, Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 68ch;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'tnum' 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible, .doc :focus-visible, .foot :focus-visible { outline-color: var(--red-text); }

/* The cutting mat: the hero, the rules band and the closing band are drawn on it. */
.mat {
  position: relative;
  background-color: var(--mat);
  background-image:
    linear-gradient(rgba(245, 245, 243, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 243, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(245, 245, 243, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 243, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
  color: var(--paper);
}
.mat::before {
  /* The ruler along the mat's top edge. */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(245, 245, 243, 0.55) 0 1px, transparent 1px 100px),
    repeating-linear-gradient(90deg, rgba(245, 245, 243, 0.35) 0 1px, transparent 1px 20px);
  background-size: 100% 14px, 100% 7px;
  background-repeat: no-repeat;
  background-position: -1px 0, -1px 0;
  pointer-events: none;
}

/* Hero */
.hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; padding: 40px var(--gutter) 56px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-logo { width: clamp(220px, 30vw, 440px); height: auto; }
.lang { color: var(--paper); font-size: 17px; font-weight: 500; }
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(40px, 7vh, 96px);
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(46px, 6.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 11ch;
}
.hero-sub { margin-top: 32px; max-width: 34ch; font-size: clamp(19px, 1.6vw, 23px); color: rgba(245, 245, 243, 0.86); }
.hero-soon { margin-top: 18px; font-weight: 500; font-size: 19px; }

/* The live part drawing */
.drawing { margin: 0; }
.drawing svg { width: 100%; height: auto; overflow: visible; touch-action: none; user-select: none; -webkit-user-select: none; }
.drawing .part { fill: rgba(245, 245, 243, 0.09); stroke: var(--paper); stroke-width: 0.9; stroke-linejoin: round; }
.drawing .hidden-edge { stroke: var(--paper); stroke-width: 0.45; stroke-dasharray: 2 1.4; fill: none; }
.drawing .centre { stroke: var(--paper); stroke-width: 0.35; stroke-dasharray: 6 1.5 1 1.5; opacity: 0.8; fill: none; }
.drawing .dim { stroke: var(--paper); stroke-width: 0.4; fill: none; opacity: 0.9; }
.drawing .arrow { fill: var(--paper); }
.drawing .dim-text { fill: var(--paper); font: 500 7.5px Jost, sans-serif; font-feature-settings: 'tnum' 1; }
.drawing .note-text { fill: var(--paper); font: 400 5.6px Jost, sans-serif; opacity: 0.85; }
.drawing .handle { cursor: grab; outline: none; }
.drawing .handle:active { cursor: grabbing; }
.drawing .handle-ring { fill: var(--red); stroke: var(--paper); stroke-width: 1.1; }
.drawing .handle-dot { fill: var(--paper); }
.drawing .handle-hit { fill: transparent; }
.drawing .handle:focus-visible .handle-ring { stroke-width: 2; fill: var(--mat-deep); }
.drawing .handle-ring { transition: r 160ms ease; }
.drawing .handle:hover .handle-ring, .drawing .handle.dragging .handle-ring { r: 5.4px; }
.drawing figcaption { margin-top: 14px; font-size: 16px; color: rgba(245, 245, 243, 0.8); max-width: 46ch; }
.readout { font-weight: 500; font-feature-settings: 'tnum' 1; color: var(--paper); }
.drawing.drawn .part, .drawing.drawn .dim { animation: draw 1300ms cubic-bezier(0.6, 0, 0.2, 1) both; stroke-dasharray: 1200; }
@keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }

/* Paper sections */
.paper { padding: clamp(72px, 11vw, 160px) var(--gutter); }
.section-title {
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.lead { margin-top: 28px; max-width: 52ch; font-size: clamp(19px, 1.5vw, 22px); color: var(--ink-2); }

.steps { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 88px); border-top: 1px solid var(--paper-2); }
.steps li {
  display: grid;
  grid-template-columns: clamp(64px, 11vw, 168px) minmax(0, 22ch) minmax(0, 46ch);
  gap: 8px clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(24px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--paper-2);
}
.step-number { font-weight: 500; font-size: clamp(56px, 8vw, 128px); line-height: 0.8; color: var(--red); font-feature-settings: 'tnum' 1; }
.steps h3 { font-weight: 500; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -0.01em; }
.steps p { color: var(--ink-2); }

/* The rules band */
.rules { padding: clamp(80px, 12vw, 176px) var(--gutter); }
.rules .section-title { max-width: 18ch; }
.rules .lead { color: rgba(245, 245, 243, 0.86); }
.rule-list { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 80px); }
.rule-list li {
  font-weight: 500;
  font-size: clamp(40px, 7.6vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  border-top: 1px solid rgba(245, 245, 243, 0.28);
  padding: 0.06em 0 0.1em;
}
.rule-list li:last-child { border-bottom: 1px solid rgba(245, 245, 243, 0.28); }
.rules-end { margin-top: 32px; max-width: 48ch; font-size: clamp(19px, 1.5vw, 22px); }

/* Printers */
.brands { margin-top: clamp(36px, 5vw, 64px); font-weight: 500; font-size: clamp(26px, 3.6vw, 56px); line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); max-width: 30ch; }
.brands span { white-space: nowrap; }
.brands span:not(:last-child)::after { content: ' /'; color: var(--red); font-weight: 500; }
.brands-more { color: var(--ink-2); }

/* Free and Pro */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 80px); max-width: 1100px; }
.plan h3 { font-weight: 500; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -0.015em; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.plan.pro h3 { color: var(--red-text); border-color: var(--red); }
.plan ul { list-style: none; padding: 0; }
.plan li { padding: 14px 0; border-bottom: 1px solid var(--paper-2); }
.plan-note { margin-top: 16px; color: var(--ink-2); font-size: 16px; }

/* Closing band */
.contact { padding: clamp(80px, 12vw, 176px) var(--gutter) clamp(72px, 10vw, 140px); }
.contact h2 { font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; max-width: 22ch; letter-spacing: -0.015em; }
.mail {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-top: 28px;
  font-weight: 500;
  font-size: clamp(30px, 6.4vw, 104px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-circle {
  flex: none;
  width: clamp(48px, 6vw, 96px);
  height: clamp(48px, 6vw, 96px);
  border: 2px solid var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 180ms ease, color 180ms ease;
}
.mail-circle svg { width: 44%; height: 44%; }
.mail:hover .mail-circle, .mail:focus-visible .mail-circle { background: var(--paper); color: var(--mat); }
.mail:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.stores { margin-top: clamp(40px, 6vw, 72px); font-size: 19px; color: rgba(245, 245, 243, 0.86); }

/* Document pages */
.bar { background: var(--mat); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); }
.bar-logo img { width: 186px; height: auto; }
.doc { padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(64px, 8vw, 120px); }
.doc-inner { max-width: var(--measure); }
.doc h1 { font-weight: 500; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.doc .updated { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.doc .intro { margin-top: 28px; font-size: 21px; }
.doc h2 { margin-top: 56px; font-weight: 500; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.doc h3 { margin-top: 28px; font-weight: 600; font-size: 19px; }
.doc p, .doc ul, .doc ol, .doc table { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--red-text); font-weight: 500; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-2); }
.doc th { font-weight: 600; border-bottom-color: var(--ink); }
.table-scroll { overflow-x: auto; }
.path { font-weight: 600; white-space: nowrap; }

/* Headings share the wordmark's typeface. */
.hero h1, .section-title, .steps h3, .step-number, .rule-list li, .brands, .plan h3, .contact h2, .mail, .doc h1, .doc h2 {
  font-family: var(--display);
  letter-spacing: -0.01em;
}

/* Footer */
.foot { background: var(--paper-2); color: var(--ink); padding: 40px var(--gutter) 48px; }
.foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: center; }
.foot-mark { width: 44px; height: 44px; grid-row: span 2; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.foot-links a { text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { text-decoration: underline; }
.foot-note { color: var(--ink-2); font-size: 15px; }

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .steps li { grid-template-columns: clamp(56px, 16vw, 96px) minmax(0, 1fr); }
  .steps p { grid-column: 2; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero { padding-top: 32px; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-mark { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .drawing.drawn .part, .drawing.drawn .dim { animation: none; stroke-dasharray: none; }
  .drawing .handle-ring, .mail-circle { transition: none; }
}
