/* The public homepage. Brand tokens come from brand.css; this adds the report serif,
   Petrol, the frames and the four parts of the page. One fictional client, North & Form,
   runs through every example. */

@font-face{font-family:Lucent Serif;src:url('../fonts/source-serif-4.woff2') format('woff2');font-weight:300 700;font-style:normal;font-display:swap}

.hc{
  --petrol:#16393f; --petrol-2:#2c616a; --petrol-ink:#e6efee; --petrol-muted:#a8c0c2;
  --paper:#fbfcfb; --hairline:color-mix(in srgb,var(--text) 14%,transparent);
  --gutter:clamp(16px,4vw,56px); --measure:1240px;
  --ease:cubic-bezier(.2,.7,.2,1);
  background:var(--bg); color:var(--text);
}
.hc main{overflow-x:clip}
.hc .wrap{width:min(var(--measure),100% - 2*var(--gutter));margin-inline:auto}
.hc .serif{font-family:Lucent Serif,Georgia,serif;font-weight:400;letter-spacing:-.01em}
.hc .kicker{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
.hc .kicker::before{content:"";width:28px;height:1px;background:currentColor}

/* Buttons */
.hc .btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px;border-radius:999px;border:1px solid var(--text);background:var(--text);color:var(--bg);font-size:15px;font-weight:500;text-decoration:none;transition:transform .2s var(--ease),background .2s}
.hc .btn:hover{transform:translateY(-1px)}
.hc .btn svg{width:16px;height:16px}
.hc .btn.ghost{background:transparent;color:var(--text);border-color:var(--hairline)}
.hc .btn.ghost:hover{border-color:var(--text)}
.hc .btn:focus-visible,.hc button:focus-visible,.hc a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.hc .actions{display:flex;flex-wrap:wrap;gap:12px}
.hc .availability{margin-top:14px;font-size:13px;color:var(--text-3)}
.hc .availability + .hp-write{margin-top:4px}
.hp-address{color:var(--text-2);font-weight:500;user-select:all}

/* Frames: an app window and a paper page. The captures are the product. */
.hc .app-frame{position:relative;border-radius:14px;background:var(--surface);border:1px solid var(--hairline);box-shadow:0 1px 2px rgba(10,26,29,.06),0 40px 80px -40px rgba(10,26,29,.45);overflow:hidden}
.hc .app-frame img{display:block;width:100%;height:auto}
.hc .app-frame iframe{display:block;width:100%;height:620px;border:0;background:var(--bg)}
.hc .paper{display:block;background:#fff;box-shadow:0 1px 2px rgba(10,26,29,.08),0 30px 60px -32px rgba(10,26,29,.5)}
.hc .paper img{display:block;width:100%;height:auto}
.hc figcaption{font-size:13px;line-height:1.5;color:var(--text-3)}


.hc-f .public-header{background:var(--bg);border-bottom:1px solid var(--hairline)}
.f-nav{display:flex;gap:26px;margin-left:36px;font-size:14px}
.f-nav a{color:var(--text-2);text-decoration:none}
.f-nav a:hover{color:var(--text)}
/* The theme switch is a quiet icon here; its label stays for screen readers. */
.hc-f .public-header .theme-toggle{min-width:40px;width:40px;height:40px;padding:0;justify-content:center;border-radius:50%}
.hc-f .public-header [data-theme-label]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* On phones the header stays on one line, also signed in and in Norwegian
   ("Åpne arbeidsområdet"): the two-word wordmark on one line, a compact button
   without its arrow, tighter gaps. */
@media (max-width:640px){
  .hc-f .public-header{gap:10px}
  .hc-f .public-header .wordmark{white-space:nowrap;font-size:17px}
  .hc-f .header-actions{gap:6px;margin-left:auto}
  .hc-f .public-header .button{padding-inline:10px;font-size:12px}
  .hc-f .public-header .button svg{display:none}
}
/* Signed in, "Open workspace" needs the room: the wordmark keeps its mark and
   its accessible name, and the name's text gives way. */
@media (max-width:430px){
  .hc-f .public-header.has-workspace .wordmark-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}
@media (max-width:360px){
  /* Signed out, the smaller wordmark and "Sign in" fit: keep the name (sitebrief.css hides it on other pages). */
  .hc-f .public-header:not(.has-workspace) .wordmark-name{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
  .hc-f .public-header{gap:6px;padding-inline:12px}
  .hc-f .header-actions{gap:4px}
  .hc-f .public-header .theme-toggle{min-width:36px;width:36px;height:36px}
  .hc-f .public-header .button{padding-inline:7px;font-size:10.5px}
}

/* ---------- The page: hero, three steps, the checked review, the close. ---------- */
.hp{font-size:16px;line-height:1.55}

.hp-hero{text-align:center;padding:80px 0 0}
.hp-hero h1{margin:22px auto 0;max-width:920px;font-size:clamp(40px,6.2vw,78px);line-height:1.03;letter-spacing:-.025em}
.hp-hero .lede{margin:24px auto 0;max-width:640px;font-size:clamp(17px,1.6vw,20px);line-height:1.5;color:var(--text-2)}
.hp-hero .actions{justify-content:center;margin-top:36px}
.hp-try{margin:56px auto 0;font-size:15px;color:var(--text-2)}
.hp-try + .hp-shot{margin-top:18px}
/* The product, cut by the fold: the Websites list is the first thing an agency uses. */
.hp-shot{margin:64px auto 0;max-height:620px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}

.hp-section{padding:128px 0}
.hp-section h2{margin:0;max-width:760px;font-size:clamp(30px,3.5vw,48px);line-height:1.08;letter-spacing:-.02em}

/* Three steps, one client: each card has one heading, one sentence and one example. */
.hp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:56px}
.hp-step{display:flex;flex-direction:column;gap:12px;min-width:0;background:var(--surface);border:1px solid var(--hairline);border-radius:14px;padding:28px 28px 0;overflow:hidden}
.hp-step h3{margin:0;font-size:22px;font-weight:500;letter-spacing:-.01em}
.hp-step > p{margin:0;min-height:3.1em;color:var(--text-2);font-size:15.5px;line-height:1.55}

/* Examples stay in light mode, like the product screenshots, even on a dark page. */
.hp-vig,.hp-film{
  --bg:#edf2f1;--surface:#fff;--surface-2:#f6f9f8;--text:#0a1a1d;--text-2:#3c5457;--text-3:#5a6d70;
  --hairline:#d5e0de;--good:#1f6b4f;--good-bg:#e2efe9;--warn:#8a5a17;--warn-bg:#f4ebdb;
  color-scheme:light;color:var(--text)}
.hp-vig{height:316px;margin-top:auto;margin-bottom:28px;padding:16px 18px;display:flex;flex-direction:column;gap:14px;
  background:var(--surface);border:1px solid var(--hairline);border-radius:12px;
  box-shadow:0 1px 2px rgba(10,26,29,.05),0 18px 36px -24px rgba(10,26,29,.35)}
.hp-vig-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--hairline)}
.hp-vig-tile{flex:none;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:#8a4b2c;color:#fff;font-size:12.5px;font-weight:600;letter-spacing:.02em}
.hp-vig-head strong{display:block;font-size:14.5px;font-weight:500;line-height:1.3}
.hp-vig-head small{display:block;font-size:12px;color:var(--text-3)}
.hp-vig-date{margin-left:auto;align-self:flex-start;font-family:var(--font-mono);font-size:11px;color:var(--text-3)}
.hp .hp-vig .hp-vig-label{margin:0;font-family:var(--font-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.hp-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hp-score{padding:9px 12px;border:1px solid var(--hairline);border-radius:8px;background:var(--surface-2)}
.hp-score b{display:block;font-size:22px;font-weight:500;letter-spacing:-.02em;line-height:1.1}
.hp-score span{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:12px;color:var(--text-3)}
.hp-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--warn)}
.hp-vig-list{list-style:none;margin:-6px 0 0;padding:0;display:grid}
.hp-vig-list li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:6px;padding:8px 0;border-bottom:1px solid var(--hairline);font-size:14px;line-height:1.4}
.hp-vig-list li:last-child{border-bottom:0}
.hp-vig-list li span{font-family:var(--font-mono);font-size:11.5px;color:var(--text-3);padding-top:1px}
.hp-vig-by{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-2)}
.hp-vig-mark{flex:none;width:20px;height:20px;border-radius:5px;background:#16393f;color:#fff;display:grid;place-items:center;font-size:10.5px;font-weight:600}
.hp .hp-vig .hp-vig-title{margin:-4px 0 0;font-family:Lucent Serif,Georgia,serif;font-size:19px;line-height:1.25;letter-spacing:-.01em;color:var(--text)}
.hp-gain{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.hp-gain b{font-size:26px;font-weight:500;letter-spacing:-.02em;line-height:1.15}
.hp-gain span{flex-basis:100%;font-size:13px;color:var(--text-2)}
.hp-badge{display:inline-block;padding:3px 9px;border-radius:999px;background:var(--good-bg);color:var(--good);font-size:11.5px;font-style:normal;font-weight:600}
.hp-chart{display:block;width:100%;height:auto;color:var(--text)}
.hp-axis{display:flex;justify-content:space-between;margin-top:-8px;font-family:var(--font-mono);font-size:10.5px;color:var(--text-3)}

/* The checked review: the product's own review page, played once, beside two promises. */
.hp-proof{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:56px;align-items:center;margin-top:52px}
.hp-film{margin:0;background:#fff;border:1px solid var(--hairline);border-radius:12px;overflow:hidden;
  box-shadow:0 1px 2px rgba(10,26,29,.05),0 18px 36px -24px rgba(10,26,29,.35)}
.hp-film-stage{position:relative;aspect-ratio:1560/934;background:#f4f7f6}
.hp-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .45s ease}
.hp-frame.is-current{opacity:1}
.hp-film-cover{display:block;position:absolute;top:7%;right:5%;width:29%;background:#fff;opacity:0;transform:translateY(18px);
  box-shadow:0 1px 2px rgba(10,26,29,.08),0 24px 48px -24px rgba(10,26,29,.55);transition:opacity .6s ease,transform .6s ease}
.hp-film.is-done .hp-film-cover{opacity:1;transform:none}
.hp-film-cover img{display:block;width:100%;height:auto}
.hp-film-rail{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:13px 18px;border-top:1px solid var(--hairline)}
.hp .hp-film .hp-film-now{flex:1 1 220px;margin:0;font-size:13.5px;line-height:1.4;color:var(--text-2)}
.hp-film-now strong{color:var(--text);font-weight:500}
.hp-film-link{color:var(--text);font-size:13.5px;font-weight:500;text-decoration:underline;text-underline-offset:3px}
.hp-film-meter{display:flex;gap:5px}
.hp-tick{width:16px;height:3px;border-radius:2px;background:var(--hairline)}
.hp-tick.on{background:var(--text)}
.hp-film-replay{border:1px solid var(--hairline);border-radius:999px;background:#fff;color:var(--text);font-size:12.5px;padding:6px 13px;cursor:pointer}
.hp-film-replay:hover{border-color:var(--text)}
.hp-film-note{margin:12px 0 0;font-size:13px;color:var(--text-3)}
.hp-promises{display:grid}
.hp-promises > div{padding:22px 0;border-top:1px solid var(--hairline)}
.hp-promises > div:last-child{border-bottom:1px solid var(--hairline)}
.hp-promises h3{margin:0;font-size:17px;font-weight:500}
.hp-promises p{margin:7px 0 0;color:var(--text-2);font-size:15px;line-height:1.55}

/* Close */
.hp-close{background:var(--petrol);color:var(--petrol-ink);padding:112px 0;text-align:center}
.hp-close h2{margin:0 auto;max-width:820px;color:#fff;font-size:clamp(30px,3.5vw,48px);line-height:1.1;letter-spacing:-.02em}
.hp-close .actions{justify-content:center;margin-top:36px}
.hp-close .btn{background:#fff;color:var(--petrol);border-color:#fff}
.hp-close .hp-write{margin-top:18px;color:var(--petrol-muted)}
.hp-close .hp-address{color:#fff}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hp-close{background:#07181b;border-top:1px solid var(--border)}}
:root[data-theme="dark"] .hp-close{background:#07181b;border-top:1px solid var(--border)}
.hp-legal a{color:inherit}
.hp-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:30px 0;font-size:13px;color:var(--text-3)}

@media (max-width:900px){
  .hp-steps{grid-template-columns:minmax(0,1fr)}
  .hp-step > p{min-height:0}
  .hp-vig{height:auto}
  .hp-proof{grid-template-columns:minmax(0,1fr);gap:32px}
  .hp-section{padding:88px 0}
  .hp-shot{margin-top:48px}
}
@media (max-width:520px){
  .hp-hero{padding-top:48px}
  .hp-hero .actions .btn,.hp-close .actions .btn{width:100%;justify-content:center}
  .hp-close{padding:76px 0}
  /* On a phone the framed list shows its phone layout: the address bar and the first websites. */
  .hp-shot{max-height:440px}
  .hc .app-frame iframe{height:440px}
  .hp-try{margin-top:40px}
}
@media (prefers-reduced-motion:reduce){.hp-frame,.hp-film-cover{transition:none}}
