/* Frontdale: corporate site. One family (Schibsted Grotesk) on a cool paper; each product owns one colour. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/schibsted-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: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/schibsted-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 {
  --paper: #f3f5f2;
  --paper-2: #e7ece8;
  --surface: #ffffff;
  --ink: #0e1c17;
  --ink-2: #3e5148;
  --ink-3: #566960;
  --line: #cfd8d2;
  --evergreen: #17463a;
  --evergreen-2: #1f5a4a;
  --moss: #4f7a68;
  --deep: #0e2b23;
  --deep-2: #0b231d;
  --deep-line: #24463b;
  --on-deep: #f3f5f2;
  --on-deep-2: #c3d8cd;
  --signal: #e7a23b;
  --signal-ink: #6b4710;
  --signal-tint: #f9ebd2;
  --select: #cfe6d9;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow: 0 1px 2px rgb(14 28 23 / .06), 0 18px 40px -18px rgb(14 28 23 / .28);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: #9fb2a8 var(--paper);
  background: var(--paper);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  caret-color: var(--evergreen);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--select); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--evergreen); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--evergreen-2); }
:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 3px; border-radius: 6px; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(46rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -100px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }

/* icons: one stroke family */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-chev { width: 14px; height: 14px; stroke-width: 2; transition: transform .2s var(--ease-out); }
.i-arrow { width: 18px; height: 18px; stroke-width: 2; transition: transform .25s var(--ease-out); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 650 1rem/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-primary { background: var(--evergreen); color: var(--paper); }
.btn-primary:hover { background: var(--evergreen-2); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--evergreen); }
.btn-light:hover { background: #fff; color: var(--evergreen); }
.btn .i { width: 20px; height: 20px; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }
.wordmark { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.primary { margin-inline-start: 12px; }
.primary ul { display: flex; gap: 4px; }
.primary a { display: block; padding: 8px 12px; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 1rem; }
.primary a:hover { color: var(--ink); background: var(--paper-2); }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

/* dropdowns built on <details> (work without JS) */
.dd { position: relative; }
.dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--ink-2); user-select: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover { color: var(--ink); background: var(--paper-2); }
.dd[open] > summary { color: var(--ink); background: var(--paper-2); }
.dd[open] > summary .i-chev { transform: rotate(180deg); }
.dd .i { width: 18px; height: 18px; }
.dd-list, .dd-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
  animation: drop .22s var(--ease-out);
}
.dd-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .975rem; }
.dd-list a small { color: var(--ink-3); font-weight: 450; font-size: .8125rem; }
.dd-list a:hover { background: var(--paper); }
.dd-list a[aria-current="true"] { color: var(--evergreen); font-weight: 700; }
.lang .dd-list { columns: 2; column-gap: 4px; min-width: 300px; }
.lang .dd-list li { break-inside: avoid; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

.mobile-menu { display: none; }
.mobile-menu > summary { padding: 0 10px; }
.mobile-menu .i { width: 24px; height: 24px; }
.dd-panel { position: fixed; inset-inline: 12px; top: 76px; display: grid; gap: 12px; padding: 16px; }
.mobile-links a { display: block; padding: 12px 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; border-bottom: 1px solid var(--paper-2); }
.mobile-apps a { color: var(--evergreen); font-size: 1rem; }
.mobile-label { margin-top: 6px; padding-inline: 8px; font-size: .875rem; font-weight: 600; color: var(--ink-3); }

@media (max-width: 1040px) {
  .primary { display: none; }
}
@media (max-width: 760px) {
  .signin, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .header-row { gap: 12px; min-height: 64px; }
  .dd-panel { top: 70px; }
}

/* ------------------------------------------------------------ products: one colour each */
[data-p="agents"]  { --pc: #17463a; --pc-2: #1d5546; --pc-on: #f3f5f2; --pc-on-2: #c3d8cd; --pc-text: #17463a; --pc-in: #f2c46d; --knob: #e7a23b; }
[data-p="sales"]   { --pc: #e3a33c; --pc-2: #e9b058; --pc-on: #1f1607; --pc-on-2: #4d3711; --pc-text: #7a4e0e; --pc-in: #fff8ea; --knob: #1f1607; }
[data-p="convert"] { --pc: #1e3557; --pc-2: #264268; --pc-on: #f3f5f2; --pc-on-2: #c5d0e2; --pc-text: #1e3557; --pc-in: #f2c46d; --knob: #e7a23b; }

/* the door from the logo: frame, leaf, knob. The leaf swings open on the register rows. */
.door {
  position: relative; display: inline-block; flex: none; width: 40px; height: 56px;
  border: 2px solid currentColor; border-radius: 20px 20px 3px 3px;
  background: var(--pc-in); perspective: 220px;
}
.leaf {
  position: absolute; inset: 3px; border-radius: 15px 15px 1px 1px; background: var(--pc);
  transform-origin: 0 50%; transition: transform .75s var(--ease-out);
}
.leaf::after { content: ""; position: absolute; inset-inline-end: 5px; top: 56%; width: 5px; height: 5px; border-radius: 50%; background: var(--knob); }

/* ------------------------------------------------------------ intro */
.intro { padding-block: clamp(48px, 6.5vw, 92px) clamp(40px, 4.5vw, 60px); }
.intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 750; letter-spacing: -.034em; line-height: 1.02; max-width: 14em; }
.intro .lead { margin-top: 24px; max-width: 40rem; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }

/* the register: the three products as full-width bands */
.reg { background: var(--pc); color: var(--pc-on); transition: background-color .3s; }
.reg:hover, .reg:focus-within { background: var(--pc-2); }
.reg a {
  display: grid; grid-template-columns: 40px minmax(0, 26rem) minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(24px, 3vw, 44px);
  max-width: 1200px; margin-inline: auto; padding: clamp(24px, 2.5vw, 34px) var(--gutter);
  color: inherit; text-decoration: none;
}
.reg a:focus-visible { outline: 3px solid var(--pc-on); outline-offset: -8px; border-radius: 4px; }
.reg .door { color: var(--pc-on); }
.reg-name { font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.04; }
.reg-line { font-size: 1.0625rem; line-height: 1.5; color: var(--pc-on-2); max-width: 32rem; }
.reg-addr { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.i-down { width: 20px; height: 20px; stroke-width: 1.9; transition: transform .3s var(--ease-out); }
.reg a:hover .i-down, .reg a:focus-visible .i-down { transform: translateY(3px); }
@media (prefers-reduced-motion: no-preference) {
  .reg a:hover .leaf, .reg a:focus-visible .leaf { transform: rotateY(-66deg); }
}

/* ------------------------------------------------------------ product sections */
.product { padding-block: clamp(72px, 9vw, 128px); }
.product + .product { border-top: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.product-head { position: sticky; top: 104px; }
.product-head h2 { display: flex; align-items: center; gap: 16px; font-size: clamp(2rem, 3.1vw, 2.75rem); font-weight: 750; letter-spacing: -.032em; line-height: 1.04; }
.product-head .door { width: 30px; height: 42px; border-radius: 15px 15px 2px 2px; color: var(--pc-text); background: var(--pc); }
.product-head .leaf { inset: 2px; border-radius: 12px 12px 1px 1px; background: var(--paper); transform: rotateY(-40deg); }
.product-head .leaf::after { background: var(--pc-text); }
.product-intro { margin-top: 22px; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 32rem; }
.product-go { margin-top: 32px; }
.btn-product { background: var(--pc); color: var(--pc-on); }
.btn-product:hover { background: var(--pc-2); color: var(--pc-on); }
.btn-product:hover .i-arrow { transform: translateX(3px); }
.product-addr { margin-top: 14px; font-size: .9375rem; color: var(--ink-3); }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }

/* spec sheet */
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: minmax(8rem, 12.5rem) minmax(0, 1fr); gap: 6px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; font-size: 1.0625rem; line-height: 1.5; }
.spec dd { margin: 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; max-width: 38rem; }

/* ------------------------------------------------------------ how we work */
.principles { padding-block: var(--section); background: var(--paper-2); }
.principles-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.principles h2, .agencies h2, .contact h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 750; letter-spacing: -.032em; line-height: 1.04; }
.principles-head .lead { margin-top: 18px; max-width: 26rem; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.rules li { padding-block: 22px 26px; border-top: 2px solid var(--ink); }
.rules h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.25; }
.rules p { margin-top: 10px; color: var(--ink-2); font-size: 1.0625rem; }

/* agencies */
.agencies { padding-block: clamp(64px, 8vw, 104px); }
.agencies-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: 24px clamp(40px, 6vw, 96px); align-items: center; }
.agencies p { color: var(--ink-2); max-width: 36rem; }

/* contact */
.contact { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }
.contact-mail { margin-top: 20px; font-size: clamp(1.9rem, 5.6vw, 4.6rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.05; overflow-wrap: anywhere; }
.contact-mail a { color: var(--evergreen); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.contact-mail a:hover { color: var(--evergreen-2); text-decoration-thickness: 3px; }
.contact .lead { margin-top: 24px; max-width: 36rem; }

/* footer */
.site-footer { background: var(--deep-2); color: var(--on-deep-2); padding-block: 64px 32px; font-size: 1rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand .brand { color: var(--on-deep); }
.footer-brand .mark rect { fill: var(--evergreen-2); }
.footer-brand p { margin-top: 14px; max-width: 18rem; }
.site-footer h2 { font-size: .9375rem; font-weight: 700; color: var(--on-deep); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--deep-line); font-size: .875rem; }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.footer-langs .i { width: 16px; height: 16px; }
.footer-langs a[aria-current="true"] { color: var(--signal); }

/* documents (privacy, legal, 404) */
.doc { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 750; letter-spacing: -.035em; }
.doc-meta { margin-top: 12px; color: var(--ink-3); font-size: .9375rem; }
.doc .lead { margin-top: 24px; }
.doc h2 { margin-top: 2.4em; font-size: 1.375rem; font-weight: 750; letter-spacing: -.015em; }
.doc h2 + p { margin-top: .6em; }
.doc p { max-width: 68ch; color: var(--ink-2); }
.doc .lead + p, .doc dl + p { margin-top: 2em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0 32px; margin-top: 40px; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
.notfound .btn { margin-top: 32px; }

/* language suggestion (not a modal: a quiet bar) */
.suggest {
  position: fixed; z-index: 30; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px 14px 20px;
  background: var(--ink); color: var(--paper); border: 1px solid rgb(243 245 242 / .16); border-radius: var(--r-m); box-shadow: var(--shadow);
  animation: drop .3s var(--ease-out);
}
.suggest p { flex: 1 1 220px; font-size: .975rem; }
.suggest a { color: var(--paper); font-weight: 700; }
.suggest button { font: 600 .9375rem var(--font); color: var(--on-deep-2); background: none; border: 0; padding: 8px; cursor: pointer; }
.suggest button:hover { color: var(--paper); }
.suggest :focus-visible { outline-color: var(--signal); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .reg a { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .reg-line { grid-column: 2 / -1; grid-row: 2; }
  .product-grid, .principles-grid { grid-template-columns: minmax(0, 1fr); }
  .product-head { position: static; }
  .agencies-row { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .reg a { grid-template-columns: 32px minmax(0, 1fr); gap: 10px 18px; align-items: start; }
  .reg .door { width: 32px; height: 45px; border-radius: 16px 16px 3px 3px; }
  .reg .leaf { border-radius: 12px 12px 1px 1px; }
  .reg-name { align-self: center; }
  .reg-line, .reg-addr { grid-column: 2; }
  .reg-addr { grid-row: 3; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 18px; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .product-go .btn { width: 100%; white-space: normal; text-align: center; min-height: 54px; padding-block: 12px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
