/* Shortlist. Palette taken from the app icon: navy ink tile, cream sheet,
   the paper underneath it, and the vermilion bookmark ribbon. */
:root {
  --ink: #1b2a3f;
  --ink-soft: #3a475a;
  --muted: #5d6573;
  --paper: #fbf8f1;
  --sheet: #ede7da;
  --rule: #d4cdbf;
  --ribbon: #e0532b;
  --ribbon-deep: #c2431f;
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ribbon-deep); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ribbon);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 6px;
  transition: background .15s;
}
.btn:hover { background: var(--ribbon-deep); }
.btn:focus-visible, .filter:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-small { padding: 8px 14px; font-size: .95rem; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* Hero */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1.04; }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 28px 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.cta-note { color: var(--muted); font-size: .95rem; }
.checkout-pending { margin-top: 14px; font-weight: 600; color: var(--ribbon-deep); }

.hero-stack { position: relative; aspect-ratio: 892 / 1262; width: min(100%, 440px); justify-self: center; }
.sheet {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #fff;
  border: 1px solid var(--rule);
}
.sheet-3 { transform: translate(34px, 22px) rotate(4deg); filter: saturate(.7) brightness(.97); }
.sheet-2 { transform: translate(-26px, 14px) rotate(-3deg); filter: saturate(.8) brightness(.98); }
.sheet-1 { box-shadow: 0 1px 0 var(--rule), 0 18px 30px -22px rgba(27, 42, 63, .45); }
.ribbon {
  position: absolute; top: -8px; right: 5%;
  width: 30px; height: 84px;
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

/* Facts strip */
.facts { background: var(--ink); color: var(--paper); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.facts p { margin: 0; color: #c9cfd8; font-size: 1rem; }
.facts strong { display: block; color: var(--paper); font-size: 2rem; font-weight: 800; line-height: 1.1; }

/* Section heads */
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; }

/* Templates */
.templates { padding: 104px 0; background: var(--sheet); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  font: 600 .95rem var(--font);
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}
.filter:hover { background: rgba(27, 42, 63, .06); }
.filter.is-on { background: var(--ink); color: var(--paper); }
.wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px;
}
.wall li[hidden] { display: none; }
.wall img { width: 100%; aspect-ratio: 892 / 1262; object-fit: cover; background: #fff; border: 1px solid var(--rule); }
.wall h3 { font-size: 1.05rem; margin: 14px 0 2px; }
.wall p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* Tour */
.tour { padding: 104px 0 40px; }
.shot { margin: 0 0 96px; }
.shot-frame { position: relative; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; }
.mark {
  position: absolute;
  border: 3px solid var(--ribbon);
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  pointer-events: none;
}
.mark::after {
  position: absolute; top: -16px; left: -16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ribbon); color: #fff;
  font: 800 1rem/32px var(--font); text-align: center;
}
.mark-a { left: .4%; top: 7%; width: 15%; height: 51%; transform: rotate(-1.5deg); }
.mark-a::after { content: "1"; }
.mark-b { left: 45%; top: 14.5%; width: 33.5%; height: 73%; transform: rotate(1deg); }
.mark-b::after { content: "2"; }
.mark-c { left: 79.5%; top: 10%; width: 19.5%; height: 70%; transform: rotate(-1deg); }
.mark-c::after { content: "3"; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.notes p { margin: 0; color: var(--ink-soft); }
.notes b {
  display: inline-block; width: 26px; height: 26px; margin-right: 6px;
  border-radius: 50%; background: var(--ribbon); color: #fff;
  font-size: .85rem; line-height: 26px; text-align: center;
}

.rows { display: grid; gap: 96px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row:nth-child(even) .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; margin-bottom: 18px; line-height: 1.15; }
.row-copy p { color: var(--ink-soft); }
.row-img { justify-self: center; width: min(100%, 360px); border: 1px solid var(--rule); border-radius: 10px; max-height: 620px; object-fit: cover; object-position: top; }
.row-img-page { border-radius: 0; width: min(100%, 400px); max-height: none; }
.row-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.row-list b { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 2px; }

/* Assistant */
.assistant { margin-top: 64px; padding: 104px 0; background: var(--ink); color: var(--paper); }
.assistant-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: start; }
.assistant h2 { margin-bottom: 24px; }
.assistant p { color: #d4d9e0; }
.plain { list-style: none; margin: 28px 0; padding: 0; }
.plain li { padding: 14px 0; border-top: 1px solid rgba(251, 248, 241, .18); color: #d4d9e0; }
.plain b { color: var(--paper); margin-right: 8px; }
.small { font-size: .95rem; color: #aeb6c2 !important; }
.assistant-shot { margin: 0; }
.assistant-shot img { border-radius: 10px; width: min(100%, 380px); margin: 0 auto; }

/* Compare */
.compare { padding: 104px 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1.02rem; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-size: 1.05rem; }
tbody th { font-weight: 600; width: 34%; }
td:nth-child(2) { font-weight: 600; }
td:nth-child(3) { color: var(--muted); }
.footnote { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* Buy */
.buy { background: var(--ribbon); color: #fff; padding: 88px 0; }
.buy-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.buy h2 { margin-bottom: 18px; }
.buy p { color: #fff3ee; max-width: 36em; }
.buy .btn-light { font-size: 1.1rem; padding: 16px 32px; }
.buy .checkout-pending { color: #fff; }
.buy-meta { margin-top: 16px; font-size: .95rem; }

/* FAQ */
.faq { padding: 104px 0; }
.faq-in { display: grid; grid-template-columns: .5fr 1.5fr; gap: 48px; }
.qs { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-size: 1.5rem; font-weight: 500; color: var(--ribbon);
}
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-soft); max-width: 44em; padding-bottom: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot p { margin: 0; display: flex; align-items: center; gap: 10px; }

/* Narrow */
@media (max-width: 960px) {
  .hero-in, .row, .assistant-in, .buy-in, .faq-in { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-copy { order: 0; }
  .hero-stack { width: min(78%, 380px); margin-top: 16px; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero { padding: 48px 0 72px; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .templates, .tour, .assistant, .compare, .faq { padding-top: 72px; padding-bottom: 72px; }
  .mark { border-width: 2px; }
  .mark::after { width: 22px; height: 22px; top: -11px; left: -11px; font-size: .75rem; line-height: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
