/* The www.n2x.me website: the card app's blue N2X style, light and dark (site.js sets data-theme before the page shows). */
:root {
  --ink: #0d1526; --muted: #5b6578; --line: #e2e6ee; --bg: #ffffff; --soft: #f3f5f9; --card: #fff; --field: #fff;
  --accent: #0a63e8; --accent-2: #19b2ff; --navy: #0a3fa8; --bad: #b42318; --ok: #1f7a3d; --head: rgba(255, 255, 255, .9);
  --shadow: 0 1px 2px rgba(13, 21, 38, .06), 0 10px 30px rgba(13, 21, 38, .08);
  --brand: linear-gradient(135deg, #0a3fa8 0%, #0a63e8 55%, #19b2ff 100%);
  --glow: radial-gradient(60rem 30rem at 85% -10%, rgba(25, 178, 255, .18), transparent 60%), radial-gradient(50rem 30rem at -10% 10%, rgba(10, 99, 232, .12), transparent 60%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e8eef8; --muted: #93a1b8; --line: #1c2a42; --bg: #00010a; --soft: #050c1a; --card: #0b1424; --field: #0f1b30;
  --accent: #3d8bff; --accent-2: #23c0ff; --navy: #7fb2ff; --bad: #ff7a6b; --ok: #5fd07a; --head: rgba(0, 1, 10, .88);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .4);
  --brand: linear-gradient(135deg, #062a73 0%, #0a4fc4 55%, #0f8fd6 100%);
  --glow: radial-gradient(60rem 30rem at 85% -10%, rgba(35, 192, 255, .16), transparent 60%), radial-gradient(50rem 30rem at -10% 10%, rgba(10, 79, 196, .22), transparent 60%);
  color-scheme: dark;
}
:root[data-theme="dark"] .for-light, :root:not([data-theme="dark"]) .for-dark { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(31, 122, 61, .12); color: var(--ok); vertical-align: middle; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--head); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 2.9rem; width: auto; }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav a { padding: .45rem .7rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover { background: var(--soft); }
.nav a.cta { margin-left: .4rem; }
.menu-button { display: none; margin-left: auto; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 62rem) {
  .menu-button { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .75rem .5rem; border-radius: 10px; }
  .nav a.cta { margin: .5rem 0 0; text-align: center; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem 1.4rem; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(10, 99, 232, .25); }
.button:hover { filter: brightness(1.08); }
.button.secondary { background: var(--field); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.nav a.button { padding: .55rem 1rem; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* Top of the home page */
.hero { background: var(--glow); padding: 4.5rem 0 4rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 1rem; }
.hero h1 span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .hero h1 span { background-image: linear-gradient(135deg, #3d8bff 0%, #23c0ff 100%); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 34rem; }
@media (max-width: 52rem) { .hero { padding: 2.8rem 0 3rem; } .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; } }

/* The phone beside the headline: a real screenshot of the card app, light or dark like the page. */
.phone { justify-self: center; width: 16rem; padding: .55rem; border-radius: 2.3rem; background: #0b1424; box-shadow: 0 30px 60px rgba(10, 40, 110, .35), inset 0 0 0 2px #22324d; transform: rotate(3deg); }
.phone img { display: block; width: 100%; height: auto; border-radius: 1.8rem; }

/* Sections */
section.band { padding: 4.5rem 0; }
section.band.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 .8rem; }
section.band p.lead { font-size: 1.12rem; color: var(--muted); max-width: 44rem; margin: 0 0 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 52rem) { section.band { padding: 3.2rem 0; } .split { grid-template-columns: 1fr; gap: 1.5rem; } }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 62rem) { .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.tile { display: block; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--accent); transform: translateY(-2px); transition: transform .15s, border-color .15s; }
.tile h3 { margin: .7rem 0 .35rem; font-size: 1.15rem; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.tile .more { display: inline-block; margin-top: .8rem; color: var(--accent); font-weight: 650; font-size: .95rem; }
.icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--brand); color: #fff; }
.icon svg { width: 1.5rem; height: 1.5rem; }

/* The promise */
.promise { background: var(--brand); color: #fff; }
.promise h2 { color: #fff; text-align: center; }
.promise .grid { margin-top: 1.6rem; }
.promise .item { padding: 1.4rem; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.promise .item strong { display: block; font-size: 1.12rem; margin-bottom: .35rem; }
.promise .item span { opacity: .9; }

/* Lists of features */
ul.features { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
ul.features li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; }
ul.features li::before { content: ""; width: 1.35rem; height: 1.35rem; margin-top: .15rem; border-radius: 50%; background: var(--brand) center / .8rem no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"), var(--brand); }
ul.features strong { font-weight: 650; }
ul.features.two-cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
@media (max-width: 52rem) { ul.features.two-cols { grid-template-columns: 1fr; } }

ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
ol.steps li { counter-increment: step; padding: 1.2rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
ol.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .6rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
@media (max-width: 40rem) { ol.steps { grid-template-columns: 1fr; } }

.panel { padding: 1.6rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.link-sample { display: block; margin: .5rem 0; padding: .7rem .9rem; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font: .95rem ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }

/* Customer logos */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; }
.logos a, .logos span { display: block; line-height: 0; }
.logos img { max-height: 3.2rem; max-width: 10rem; width: auto; filter: grayscale(1); opacity: .75; }
.logos a:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .logos img { background: #fff; padding: .4rem .7rem; border-radius: 10px; }

/* Forms */
form.panel label { display: block; margin: .9rem 0 .3rem; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], select, textarea { width: 100%; padding: .75rem .85rem; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); }
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.checks { display: grid; gap: .5rem; margin: .8rem 0; }
.checks label.choice { display: grid; grid-template-columns: 1.2rem 1fr; gap: .6rem; margin: 0; font-weight: 450; }
.checks input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 40rem) { .form-row { grid-template-columns: 1fr; } }
form.panel .button { width: 100%; margin-top: 1.2rem; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; font-weight: 600; }
.notice.ok { background: rgba(31, 122, 61, .12); color: var(--ok); }
.notice.bad { background: rgba(180, 35, 24, .1); color: var(--bad); }
.small { font-size: .88rem; }

/* Page tops other than home */
.page-top { background: var(--glow); padding: 3.5rem 0 2.5rem; }
.page-top h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .8rem; }
.page-top p.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.prose p, .prose li { color: var(--ink); }

/* Footer */
.site-foot { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); background: var(--soft); font-size: .93rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.theme-button { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }

/* "Your contacts, in and out", with steps that open. */
.contacts-io { margin-top: 2.5rem; }
.contacts-io h3 { margin: 0 0 .3rem; }
.contacts-io .grid { margin-top: 1rem; }
.contacts-io h4 { margin: 0 0 .4rem; font-size: 1.05rem; }
.contacts-io p { margin: 0 0 .6rem; }
details.steps { border-top: 1px solid var(--line); padding: .55rem 0; }
details.steps summary { cursor: pointer; font-weight: 650; color: var(--accent); }
details.steps ol { margin: .5rem 0 .2rem; padding-left: 1.3rem; }
details.steps li { margin: .3rem 0; }
