@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-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;
}

/* start.mjs brand --page software --bg #ffffff --surface #f4f4f5 --ink #151311 --accent #e85600 --type schibsted --radius round */
:root {
  --p-bg: #ffffff; --p-surface: #f4f4f5; --p-ink: #151311; --p-muted: #55524e;
  --ground-bg: #f4f4f5; --ground-surface: #fafafa; --ground-ink: #18181b; --ground-muted: #5f5f66; --ground-accent: #52525b;
  --p-accent: #e85600; --p-accent-ink: #111111; --p-action: #e85600; --p-action-ink: #111111;
  --p-inv-bg: #151311; --p-inv-surface: #22201d; --p-inv-ink: #fafafa; --p-inv-muted: #a8a49f;
  --p-inv-accent: #e85600; --p-inv-accent-ink: #111111; --p-inv-action: #e85600; --p-inv-action-ink: #111111;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.042em;
  --shot-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45);
}

.nav__logo, .nav__link { min-height: 44px; }
.nav__logo img { display: block; width: 32px; height: 32px; }
/* the menu button follows the logo in the markup for the tab order, and keeps its old place at the end of the bar */
@media (max-width: 1023px) {
  .nav__toggle { order: 1; }
  .nav:not(.is-open) .nav__toggle { margin-left: 0; }
}

/* hero: the words on the inverse ground beside the product screens, one tab at a time */
/* as tall as its panel like the mock, not the kit's one screen; ties the kit rule's weight and wins on source order */
main > :is(.hero, .section--hero).hero--panel { height: auto; min-height: 0; }
.hero-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.hero-panel > * { min-height: 0; overflow: clip; border-radius: var(--r-lg); padding: var(--s-6); }
.hero-panel__copy { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-5); }
.hero-panel__copy > p { color: var(--muted); max-width: 46ch; }
.hero-panel__product { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--s-5); background: color-mix(in oklab, var(--ink) 6%, var(--bg)); }
.hero-panel__views { position: relative; min-height: 0; aspect-ratio: 16 / 10; align-self: center; }
.hero-panel__views > [role="tabpanel"] { position: absolute; inset: 0; }
.hero-panel__views img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--r-md); box-shadow: var(--shot-shadow); }
.hero-panel__views img.is-portrait { border-radius: 22px; }
.hero-panel .tab { height: 44px; }
/* the brand orange is about 3:1 on this grey panel, so the ring there takes the ink */
.hero-panel__product :focus-visible { outline-color: var(--p-ink); }
/* with scripts off the tabs do nothing, so only the first screen shows */
html:not(.mo-js) [role="tablist"] { display: none; }

/* bento: one grid as tight as the mock, a declared exception to the kit's one-screen rhythm; :is() ties the kit rule's weight and wins on source order */
main > :is(section, .section).bento { height: auto; min-height: 0; padding: var(--card-gap) 0; }
.bento > .wrap { column-gap: var(--card-gap); }
.bento [id] { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.bento .card { gap: var(--s-4); }
/* muted body text is 6.6:1 on the kit's inverse card surface, under the 7:1 body rule; on the inverse ground it is 7.5:1 */
.bento .card.ground-inverse { --card: var(--bg); }
.bento .card > p { margin: 0; max-width: none; color: var(--muted); }
/* a 44px target that leaves the line as it is: only the top grows, because the kit's underline sits on the bottom padding */
.bento .card > p > a { padding-top: 22px; }
/* the card gap and the leading give the grown top only 16px, so this margin keeps it off the text of the line above */
.bento .card > p:has(> a) { margin-top: 6px; }
.bento .card > :is(h3, .t-h3) { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.card__shot { border-radius: var(--r-md); box-shadow: var(--shot-shadow); }
.bento__head { grid-column: 1 / -1; padding-top: var(--s-5); }
/* room-queue.webp is room.webp cut at x 1932-2560, y 100-680: the queue panel only */
.card__crop { width: min(100%, 420px); height: auto; margin-top: auto; border-radius: var(--r-md); box-shadow: var(--shot-shadow); }
.card--accent {
  --card: var(--p-accent); --ink: var(--p-accent-ink); --muted: var(--p-accent-ink);
  --action: var(--p-ink); --action-ink: var(--p-inv-ink); --c-border: transparent;
  justify-content: flex-end;
}
.card--accent > .btn { align-self: flex-start; }
/* the link has the body text colour on the orange, so the underline is what marks it */
.card--accent p > a { text-decoration: underline; text-underline-offset: 3px; }
.bento .card > .card__price { font: 600 clamp(34px, 3.8vw, 54px)/.9 var(--font-display); letter-spacing: -0.06em; }
.card__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.card__chips > .pill { height: auto; padding: var(--s-1) var(--s-3); border: 0; border-radius: var(--r-sm); background: color-mix(in oklab, var(--ink) 6%, var(--card)); font-size: var(--t-small); }
.card__phones { display: flex; align-items: flex-start; gap: var(--s-4); }
.card__phones > img:first-child { flex: none; width: 150px; border-radius: 18px; }
.card__phones > img:last-child { flex: 1; min-width: 0; }

/* the close: as tall as its words, a declared exception to the kit's one-screen rhythm */
footer.closing { height: auto; min-height: 0; padding: var(--s-8) 0 var(--s-4); }
.closing__cta p { color: var(--muted); }
.closing__links > .footer__legal { margin-top: 0; padding-top: 0; border-top: 0; align-items: center; }
.footer__legal > span:last-child { display: flex; gap: var(--s-4); }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* the kit sets span-6 cards two-up on a tablet; the mock gives gravação and celular the full row there */
@media (min-width: 640px) and (max-width: 1023px) { .bento > .wrap > .card.span-6 { grid-column: 1 / -1; } }

@media (min-width: 1024px) {
  .hero-panel__copy { min-height: 620px; }
  /* the kit's 64px puts the fold of a 900px screen through the sala heading; 32px clears it and puts an 800px fold in the card's top padding */
  main > :is(.hero, .section--hero).hero--panel { padding-bottom: var(--s-6); }
}
/* the product panel is 356-434px wide here, under the 442px the four tabs take at the kit's padding */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-panel .tabs { gap: var(--s-1); }
  .hero-panel .tab { padding-inline: 6px; }
}
@media (max-width: 1023px) { .hero-panel { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 639px) {
  .hero-panel { gap: var(--s-3); }
  .hero-panel > * { padding: var(--s-4); }
  .hero-panel__copy, .hero-panel__product { gap: var(--s-4); }
  .bento .card { gap: var(--s-3); }
  .card__phones { flex-direction: column; }
  .card__phones > img:last-child { width: 100%; }
  footer.closing { padding-top: var(--s-7); }
  .hero-panel .btn-row > .btn--secondary { text-decoration: none; }
}
