/*
 * Crava's plain pages - the designs, how it works, pricing, FAQ, about - written at build time by
 * static-pages.ts. The app's colours (polish.css) and its one type family, Geist; phone first, and
 * nothing here needs JavaScript.
 */

:root {
  --ground: #ffffff;
  --panel: #f4f6f8;
  --raised: #ffffff;
  --ink: #0f1513;
  --ink-2: #2f3835;
  --muted: #5d6763;
  --line: #e7eaee;
  --line-strong: #cfd5db;
  --accent: #2456f0;
  --accent-ink: #ffffff;
  --accent-soft: #e9efff;
  --orange: #ef6436;
  --hero-a: #d6f3e4;
  --hero-b: #dbe5ff;
  --hero-c: #ffecd9;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.08);
  --body: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1012;
    --panel: #15191c;
    --raised: #1b2024;
    --ink: #f1f4f6;
    --ink-2: #c9d1d6;
    --muted: #8f9aa1;
    --line: #262d33;
    --line-strong: #3a434a;
    --accent: #6f93ff;
    --accent-ink: #0b1430;
    --accent-soft: #1b2645;
    --orange: #ef8a5a;
    --hero-a: #14281d;
    --hero-b: #18213f;
    --hero-c: #2b2015;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  margin: 40px 0 12px;
  font-size: clamp(21px, 4.4vw, 26px);
  line-height: 1.2;
  font-weight: 650;
}

h3 {
  margin: 22px 0 6px;
  font-size: 17px;
  font-weight: 650;
}

p,
li {
  color: var(--ink-2);
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

/* ---------- Header and footer ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  min-height: 60px;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo {
  padding: 12px 0;
}

/* On a phone the links are a row of their own under the logo, sliding sideways; on a desk, beside it. */
.nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 4px;
  margin: 0 -16px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
}

.nav a:hover {
  background: var(--panel);
  color: var(--ink);
}

.nav a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  filter: brightness(1.08);
}

.button-small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 14.5px;
}

.button-quiet {
  background: var(--raised);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.foot {
  margin-top: 72px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin-bottom: 18px;
}

.foot nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink-2);
  text-decoration: none;
}

.foot nav a:hover {
  color: var(--ink);
}

.foot p {
  margin: 0;
  color: var(--muted);
}

.foot p a {
  color: inherit;
}

@media (min-width: 760px) {
  .top-row {
    min-height: 66px;
  }

  .nav {
    order: 0;
    flex: 0 1 auto;
    margin: 0 auto 0 12px;
    padding: 0;
  }

  .foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
  }
}

/* ---------- Page heads ---------- */

.crumbs {
  margin: 20px 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  color: var(--muted);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 4px;
  opacity: 0.6;
}

.crumbs a {
  color: inherit;
}

.head {
  margin: 0 -16px;
  padding: 36px 16px 30px;
  background:
    radial-gradient(520px 260px at 10% 10%, var(--hero-a), transparent 70%),
    radial-gradient(520px 280px at 92% 6%, var(--hero-b), transparent 70%),
    radial-gradient(560px 240px at 60% 120%, var(--hero-c), transparent 70%),
    var(--panel);
}

.lead {
  max-width: 62ch;
  margin: 0 0 18px;
  font-size: 17.5px;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- The gallery ---------- */

.rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rooms a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Said once, above all the pictures, rather than on each one. */
.disclosure {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.room {
  scroll-margin-top: 120px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
}

.picture {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel);
}

.card .picture {
  aspect-ratio: 4 / 3;
}

.card .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .picture img {
  transform: scale(1.03);
}

.card:focus-visible {
  outline: none;
}

.card:focus-visible .picture {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.card-name {
  margin-top: 6px;
  font-weight: 650;
  font-size: 16px;
}

.card-meta {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- A design ---------- */

.design-head {
  display: grid;
  gap: 22px;
  margin-top: 6px;
}

.design-head .picture img {
  width: 100%;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 550;
}

.tags li:first-child {
  background: var(--accent-soft);
  color: var(--accent);
}

.checked {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.checked svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: #15803d;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 900px) {
  .design-head {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
    gap: 36px;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}

.stats div {
  padding: 12px 14px;
  background: var(--raised);
}

.stats .wide {
  grid-column: 1 / -1;
}

.stats dt {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--ink);
}

.stats dd small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
}

.buy {
  margin: 0;
  padding-left: 20px;
}

.buy li + li {
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td.num,
td.size {
  font-family: var(--mono);
  font-size: 13.5px;
  white-space: nowrap;
}

td.size small {
  display: block;
  color: var(--muted);
}

.letter {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 12.5px var(--mono);
}

.more td {
  border-bottom: 0;
  color: var(--muted);
  font-weight: 600;
}

/* The rest of the cut list is in the app: said plainly, with the way there. */
.open-box {
  margin: 18px 0 0;
  padding: 20px 18px;
  border-radius: 16px;
  background:
    radial-gradient(420px 200px at 0% 0%, var(--hero-b), transparent 70%),
    radial-gradient(420px 200px at 100% 100%, var(--hero-c), transparent 70%),
    var(--panel);
}

.open-box p {
  margin: 0 0 14px;
}

.open-box strong {
  color: var(--ink);
}

.open-box .note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Words pages ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  margin: 0 0 26px;
  padding-left: 46px;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.steps h2 {
  margin: 2px 0 6px;
  font-size: 20px;
}

.steps p {
  margin: 0 0 8px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 18px 0 0;
}

@media (min-width: 720px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--raised);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}

.plan h2 {
  margin: 0 0 4px;
}

.price {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.plan li + li {
  margin-top: 6px;
}

.plan-plus {
  box-shadow: var(--shadow), inset 0 0 0 2px var(--accent);
}

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

.faq summary {
  padding: 16px 28px 16px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 17px;
  color: var(--ink);
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 13px;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details > div {
  padding: 0 0 14px;
}

.faq details p {
  margin: 0 0 10px;
}

.band {
  margin: 48px 0 0;
  padding: 28px 20px;
  border-radius: 20px;
  background:
    radial-gradient(520px 260px at 10% 10%, var(--hero-a), transparent 70%),
    radial-gradient(520px 260px at 90% 90%, var(--hero-c), transparent 70%),
    var(--panel);
  text-align: center;
}

.band h2 {
  margin: 0 0 8px;
}

.band p {
  margin: 0 auto 16px;
  max-width: 52ch;
}

.band .actions {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .card .picture img {
    transition: none;
  }
}
