/* Rock Pay — site styles
   Palette: basalt (deep blue stone), paper, mist, slate, malachite (approved / go) */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Layout concept: light, open fintech page. White and pale-mist bands, navy type,
   brand cyan from the Rock Pay mountain used for highlights; one coded checkout as the hero visual. */
:root {
  --ink: #0e2230;
  --ink-2: #33495a;
  --muted: #5c6f7e;
  --line: #e1e8ee;
  --mist: #f4f8fb;
  --paper: #ffffff;
  --navy: #0e2230;
  --cyan: #00bded;
  --cyan-soft: #e3f7fd;
  --blue: #0077a0;
  --blue-deep: #005f80;
  --facet: #0084a5;
  --ok: #0f8a5f;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 8px;
  --r-m: 14px;
  --shadow: 0 1px 2px rgba(14, 34, 48, .06), 0 12px 32px -12px rgba(14, 34, 48, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 620; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.eyebrow { color: var(--blue); font-weight: 600; font-size: .9688rem; margin-bottom: 14px; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 54ch; line-height: 1.6; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-s); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-secondary { background: var(--paper); border-color: #c9d5de; color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: var(--cyan); color: #04202b; }
.btn-light:hover { background: #3fd0f5; }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 36px; height: 74px; }
.brand { display: inline-flex; flex-shrink: 0; }
.site-header .brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: .9688rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }
.nav .nav-only-mobile { display: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; gap: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav .nav-only-mobile { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--mist); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero-facets { position: absolute; right: -120px; top: -40px; width: 820px; max-width: none; opacity: .09; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; color: var(--ink-2); font-size: .9688rem; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-facets { right: -260px; top: auto; bottom: -120px; }
}

/* Coded checkout — illustrates the hosted payment page */
.checkout-wrap { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.checkout {
  background: var(--paper); border-radius: 18px; box-shadow: 0 2px 4px rgba(14, 34, 48, .05), 0 30px 60px -20px rgba(14, 34, 48, .28);
  border: 1px solid var(--line); overflow: hidden;
}
.co-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.co-top img { height: 22px; width: auto; }
.co-secure { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.co-secure svg { width: 14px; height: 14px; }
.co-body { padding: 22px; }
.co-merchant { font-size: .875rem; color: var(--muted); margin: 0; }
.co-amount { font-size: 2rem; font-weight: 650; letter-spacing: -0.03em; margin: 2px 0 18px; }
.co-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.co-tab { height: 44px; border: 1px solid var(--line); border-radius: var(--r-s); display: grid; place-items: center; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.co-tab.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--ink); }
.co-tab img { height: 22px; width: auto; }
.co-field { border: 1px solid #cfd9e1; border-radius: var(--r-s); padding: 9px 12px; margin-bottom: 10px; }
.co-field small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.co-field span { display: flex; justify-content: space-between; align-items: center; font-size: .9688rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.co-field span img { height: 16px; width: auto; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-pay { margin-top: 6px; height: 50px; border-radius: var(--r-s); background: var(--blue); color: #fff; font-weight: 650; display: grid; place-items: center; }
.co-foot { padding: 12px 22px; background: var(--mist); font-size: .75rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.co-toast {
  position: absolute; right: -36px; top: 96px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 12px 16px 12px 12px; display: flex; gap: 12px; align-items: center;
}
.co-toast i { width: 34px; height: 34px; border-radius: 50%; background: #e2f5ec; display: grid; place-items: center; color: var(--ok); }
.co-toast i svg { width: 18px; height: 18px; }
.co-toast strong { display: block; font-size: .9375rem; line-height: 1.25; }
.co-toast small { color: var(--muted); font-size: .8125rem; }
@media (max-width: 560px) { .co-toast { display: none; } }

/* Methods strip */
.methods-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.methods-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.methods-strip p { margin: 0; color: var(--muted); font-size: .9688rem; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges img { width: 60px; height: 38px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 32px 30px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--cyan-soft); color: var(--facet); display: grid; place-items: center; margin-bottom: 20px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Integration options */
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.option { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 30px; display: flex; flex-direction: column; }
.tag { align-self: flex-start; font-size: .8125rem; font-weight: 600; color: var(--blue-deep); background: var(--cyan-soft); padding: 4px 10px; border-radius: 99px; margin-bottom: 18px; }
.option h3 { font-size: 1.375rem; margin-bottom: 10px; }
.option > p { color: var(--muted); font-size: 1rem; }
.option ul.checks { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; font-size: .9688rem; color: var(--ink-2); }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3 3 7-7' fill='none' stroke='%230077a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plugin-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 12px; }
.plugin-logos li { height: 54px; border: 1px solid var(--line); border-radius: var(--r-s); display: grid; place-items: center; padding: 8px; }
.plugin-logos img { max-height: 30px; width: auto; }
@media (max-width: 900px) { .options { grid-template-columns: minmax(0, 1fr); } }

/* Go-live steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 58px; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 650; display: grid; place-items: center; font-size: 1rem;
}
.step::after { content: ""; position: absolute; top: 20px; left: 52px; right: -16px; height: 1px; background: #c9d5de; }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Why Rock Pay */
.why { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.why-list h3 { margin-bottom: 8px; padding-top: 18px; border-top: 2px solid var(--cyan); }
.why-list p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .why-list { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #a9bccb; margin: 14px 0 0; font-size: 1.125rem; max-width: 52ch; }
.cta-band .hero-actions { flex-shrink: 0; }
.cta-facets { position: absolute; right: -80px; bottom: -160px; width: 520px; max-width: none; opacity: .16; pointer-events: none; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-intro .lead { margin-top: 18px; }
.details { margin: 36px 0 0; display: grid; gap: 22px; }
.details dt { font-size: .875rem; color: var(--muted); margin-bottom: 2px; }
.details dd { margin: 0; font-weight: 550; line-height: 1.5; }
.details a { text-underline-offset: 3px; text-decoration-color: #b9c7d2; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px;
  border: 1px solid #c9d5de; border-radius: var(--r-s); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 119, 160, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b42318; }
.field-error { display: block; margin-top: 6px; color: #b42318; font-size: .875rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--muted); font-size: .875rem; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r-s); font-weight: 550; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e2f5ec; color: #0b6b49; }
.form-status.err { background: #fdecea; color: #8f1d14; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { background: #0a1a26; color: #a9bccb; padding: 64px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand img { height: 32px; width: auto; margin-bottom: 16px; }
.site-footer p { margin: 0; max-width: 32ch; }
.site-footer address { font-style: normal; margin-top: 16px; line-height: 1.6; }
.site-footer h2 { font-size: .9375rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Document pages (privacy, 404) */
.doc-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.doc { padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 10vw, 120px); }
.doc-body { max-width: 70ch; }
.doc-body h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin: 44px 0 12px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body ul { padding-left: 1.2em; margin: 0 0 1em; list-style: disc; }
.doc-body address { font-style: normal; line-height: 1.6; font-weight: 550; }
.doc-body a { color: var(--blue-deep); }
.notfound { padding: clamp(80px, 14vw, 160px) 0; }
.notfound p { color: var(--muted); max-width: 44ch; margin: 18px 0 32px; font-size: 1.125rem; }
