/* Carpet Size Planner — landing. Visual idea: a measured drawing sheet (plaster paper, 48 px grid,
   ink lines, tape-measure yellow, dimension lines and a title block as footer). */

@font-face { font-family: "Red Hat Display"; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-display-latin-700-normal.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: "Red Hat Display"; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-display-latin-ext-700-normal.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: "Red Hat Display"; font-weight: 900; font-display: swap; src: url("/assets/fonts/red-hat-display-latin-900-normal.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: "Red Hat Display"; font-weight: 900; font-display: swap; src: url("/assets/fonts/red-hat-display-latin-ext-900-normal.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: "Red Hat Text"; font-weight: 400; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-400-normal.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: "Red Hat Text"; font-weight: 400; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-ext-400-normal.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: "Red Hat Text"; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-700-normal.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: "Red Hat Text"; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-ext-700-normal.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: "Red Hat Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-500-normal.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: "Red Hat Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-ext-500-normal.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: "Red Hat Mono"; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-700-normal.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: "Red Hat Mono"; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-ext-700-normal.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; }

:root {
  --plaster: #f0f0ea;
  --paper: #fbfbf7;
  --grid: #e3e3da;
  --ink: #22211d;
  --soft: #55544c;
  --line: #cfcfc4;
  --tape: #f2b705;
  --tape-dark: #7a5a00;
  --display: "Red Hat Display", "Arial Black", Arial, sans-serif;
  --text: "Red Hat Text", Arial, sans-serif;
  --mono: "Red Hat Mono", "Courier New", monospace;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--plaster);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

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

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
p { margin: 0; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tape); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--tape); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* The drawing sheet: a thin ink border around the page on wide screens. */
.sheet { min-height: 60vh; }
@media (min-width: 900px) {
  body { padding: 18px 18px 0; }
  .sheet { border: 2px solid var(--ink); border-bottom: 0; background: rgba(251, 251, 247, 0.55); }
}

/* ---------- Header ---------- */
.top { border-bottom: 2px solid var(--ink); background: var(--paper); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -0.3px; }
.brand img { border-radius: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 4px; }
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--tape); border-color: var(--ink); }

/* ---------- Shared pieces ---------- */
.kicker { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--tape-dark); margin-bottom: 14px; }

.dim { position: relative; height: 22px; margin: 26px 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--ink); }
.dim::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 6px); height: 12px;
  background:
    linear-gradient(to bottom right, transparent 49%, var(--ink) 50%) left top / 14px 6px no-repeat,
    linear-gradient(to top right, transparent 49%, var(--ink) 50%) left bottom / 14px 6px no-repeat,
    linear-gradient(to bottom left, transparent 49%, var(--ink) 50%) right top / 14px 6px no-repeat,
    linear-gradient(to top left, transparent 49%, var(--ink) 50%) right bottom / 14px 6px no-repeat; }
.dim-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--tape); padding: 1px 10px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; z-index: 1; }

.section-title { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 28px; }
.section-title::before { content: ""; width: 2px; height: 16px; background: var(--ink); flex: none; }
.section-title::after { content: ""; flex: 1; min-width: 24px; height: 2px; background: var(--ink); }
.section-title span { overflow-wrap: anywhere; }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 18px; height: 2px; background: var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 0; top: calc(0.8em - 5px); width: 2px; height: 12px; background: var(--ink); }

.textlink { font-weight: 700; }

/* Real screenshot in an ink frame with the yellow "cut rug" block behind it. */
.shot { position: relative; margin: 0; justify-self: center; width: min(360px, 78vw); }
.shot::before { content: ""; position: absolute; inset: 0; transform: translate(-16px, 16px); background: var(--tape); border-radius: 14px; }
.shot img { position: relative; width: 100%; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); }

/* ---------- Google Play button ---------- */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; text-decoration: none; border: 2px solid var(--ink); }
.play:hover { background: #000; }
.play-mark { width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--tape); }
.play-text { display: flex; flex-direction: column; line-height: 1.1; }
.play-small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; }
.play-big { font-family: var(--display); font-weight: 900; font-size: 20px; }
.play-soon { background: transparent; color: var(--ink); border-style: dashed; cursor: default; }
.play-soon .play-mark { border-left-color: var(--soft); }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-weight: 900; font-size: clamp(44px, 9vw, 104px); letter-spacing: -2px; line-height: 0.98; }
.hero h1 span { display: block; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--tape) 62%, var(--tape) 90%, transparent 90%); display: inline; }
.lead { font-size: 20px; line-height: 1.55; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.facts li { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 4px; padding: 4px 10px; background: var(--paper); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; }
}

/* ---------- Steps ---------- */
.steps { padding: 64px 0; background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 2px solid var(--ink); }
.step { padding: 24px; border-bottom: 2px solid var(--ink); }
.step:last-child { border-bottom: 0; }
.step-n { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 15px; background: var(--tape); border: 2px solid var(--ink); padding: 2px 8px; margin-bottom: 14px; }
.step h3 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.step p { color: var(--soft); }
@media (min-width: 760px) {
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(odd) { border-right: 2px solid var(--ink); }
  .step:nth-child(3) { border-bottom: 0; }
}
@media (min-width: 1080px) {
  .step-list { grid-template-columns: repeat(4, 1fr); }
  .step { border-bottom: 0; border-right: 2px solid var(--ink); }
  .step:last-child { border-right: 0; }
}

/* ---------- Tools ---------- */
.tools { padding: 72px 0 24px; }
.tool { display: grid; gap: 40px; align-items: center; padding-top: 32px; padding-bottom: 72px; }
.tool + .tool { border-top: 1px dashed var(--line); padding-top: 72px; }
.tool-label { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; }
.tool-n { background: var(--ink); color: var(--tape); padding: 2px 8px; margin-right: 6px; }
.tool h3 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; letter-spacing: -0.8px; margin-bottom: 18px; }
.tool-text > p { max-width: 34em; }
@media (min-width: 900px) {
  .tool { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .tool-flip .tool-text { order: 2; }
}

/* ---------- More ---------- */
.more { padding: 56px 0 72px; }
.more-grid { display: grid; border: 2px solid var(--ink); background: var(--paper); }
.more-item { padding: 24px; border-bottom: 2px solid var(--ink); }
.more-item:last-child { border-bottom: 0; }
.more-item h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.more-item p { color: var(--soft); }
@media (min-width: 760px) {
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more-item:nth-child(odd) { border-right: 2px solid var(--ink); }
  .more-item:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* ---------- Rules ---------- */
.rules { padding: 0 0 80px; }
.rule-list { margin: 0; display: grid; gap: 0; }
.rule { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 2px solid var(--ink); }
.rule:last-child { border-bottom: 2px solid var(--ink); }
.rule dt { font-family: var(--mono); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rule dd { margin: 0; font-size: 19px; }
@media (min-width: 760px) {
  .rule { grid-template-columns: 220px 1fr; align-items: baseline; }
}

/* ---------- Privacy strip ---------- */
.privacy-strip { background: var(--ink); color: var(--paper); padding: 64px 0; }
.privacy-inner h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; color: var(--tape); max-width: 16em; }
.privacy-strip .ticks li::before, .privacy-strip .ticks li::after { background: var(--tape); }
.privacy-strip .ticks { max-width: 46em; margin-bottom: 22px; }
.privacy-strip a { color: var(--paper); }

/* ---------- FAQ ---------- */
.faq { padding: 72px 0; }
details { border-bottom: 2px solid var(--ink); }
details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; font-family: var(--display); font-weight: 700; font-size: 21px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-weight: 700; font-size: 24px; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 4px; }
details[open] summary::after { content: "−"; background: var(--tape); }
details p { padding: 0 0 18px; max-width: 42em; color: var(--soft); }

/* ---------- Download ---------- */
.download { background: var(--tape); border-top: 2px solid var(--ink); padding: 48px 0; }
.download-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.download h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.download .play-soon { border-color: var(--ink); }

/* ---------- Inner pages ---------- */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 900; letter-spacing: -1px; }
.page .lead { margin-bottom: 32px; }
.legal h2 { font-size: 24px; font-weight: 900; margin: 36px 0 10px; }
.legal p { margin-bottom: 12px; max-width: 42em; }
.small { font-size: 14px; color: var(--soft); }
.guide-steps { list-style: none; counter-reset: step; margin: 0 0 56px; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.guide-steps li { counter-increment: step; position: relative; padding: 22px 0 22px 64px; border-bottom: 2px solid var(--ink); }
.guide-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--mono); font-weight: 700; background: var(--tape); border: 2px solid var(--ink); padding: 1px 7px; }
.guide-steps h2 { font-size: 23px; font-weight: 900; margin-bottom: 6px; }
.contact-box { margin-top: 48px; padding: 24px; border: 2px solid var(--ink); background: var(--paper); }
.contact-box h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.contact-box a { overflow-wrap: anywhere; }

/* ---------- Title block footer ---------- */
.titleblock { background: var(--paper); border-top: 2px solid var(--ink); padding: 0 0 18px; }
@media (min-width: 900px) {
  .titleblock { border: 2px solid var(--ink); margin: 0 0 18px; }
}
.tb-grid { display: grid; grid-template-columns: 1fr; padding: 0; }
.tb-cell { padding: 14px 20px; border-bottom: 1px solid var(--ink); min-width: 0; }
.tb-name { display: flex; gap: 12px; align-items: center; }
.tb-label { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }
.tb-value { font-family: var(--display); font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.tb-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tb-links a, .tb-value a { display: inline-flex; align-items: center; min-height: 32px; }
.tb-sheet .tb-value { font-family: var(--mono); }
.tb-note { padding-top: 14px; font-size: 14px; color: var(--soft); }
@media (min-width: 760px) {
  .tb-grid { grid-template-columns: 1.3fr 1fr 1.4fr 1.3fr 0.6fr; }
  .tb-cell { border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }
  .tb-cell:last-child { border-right: 0; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .lead { font-size: 18px; }
  .hero { padding-top: 36px; }
  .hero h1 { letter-spacing: -1px; }
  .brand { font-size: 18px; }
  .nav a { padding: 0 8px; font-size: 13px; }
  .play { padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.cta-row { margin: 22px 0 30px; }
