/* ==========================================================================
   NumTrans — numtrans.atoice.com
   Design tokens are taken verbatim from the approved design so the palette,
   type scale and spacing are preserved exactly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted. Variable woff2: one file per subset covers all weights.
   The latin-ext subset carries U+20B9 (the rupee sign), so it is essential,
   not optional.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-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;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-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;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --bg: oklch(98% 0.006 80);
  --bg-subtle: oklch(96% 0.006 80);
  --surface: oklch(100% 0 0);

  /* Text */
  --text: oklch(18% 0.02 262);
  --text-body: oklch(22% 0.03 262);
  --text-muted: oklch(45% 0.02 262);
  --text-faint: oklch(55% 0.01 262);

  /* Brand */
  --accent: oklch(52% 0.16 258);
  --accent-strong: oklch(42% 0.16 258);
  --accent-soft: oklch(94% 0.02 258);
  --accent-dotted: oklch(60% 0.14 258);

  /* Lines */
  --border: oklch(90% 0.006 80);
  --border-card: oklch(91% 0.006 80);

  /* Dark section */
  --dark: oklch(18% 0.008 260);
  --dark-text: oklch(98% 0.006 80);
  --dark-muted: oklch(72% 0.01 260);

  /* Extension tooltip — exact values from the shipped styles/tooltip.css */
  --tooltip-bg: #14161a;
  --tooltip-text: #f5f6f7;
  --tooltip-meta: #a6adb8;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Layout */
  --max-w: 1200px;
  --gutter: 32px;
  --section-y: 90px;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-btn: 0 1px 2px oklch(0% 0 0 / 0.06);
  --shadow-card: 0 24px 60px -20px oklch(20% 0.03 262 / 0.18);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Safety net only — every grid is corrected at source below. */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

ul,
ol {
  list-style: none;
}

/* Available to assistive tech, removed from the visual layout. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Focus states — visible on keyboard navigation only. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--accent);
  color: oklch(99% 0.004 80);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: oklch(99% 0.004 80);
}

/* Anchor targets clear the sticky header. */
[id] {
  scroll-margin-top: 88px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section {
  padding-block: var(--section-y);
}

.section--subtle {
  background: var(--bg-subtle);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.section-head--tight h2 {
  margin-bottom: 0;
}

/*
 * The min() is the horizontal-overflow fix: without it, auto-fit holds the
 * column at its stated minimum even when the container is narrower, and the
 * page scrolls sideways on small phones.
 */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.grid--steps {
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.grid--benefits {
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: oklch(99% 0.004 80);
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-strong);
  color: oklch(99% 0.004 80);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
}

.btn-secondary {
  font-size: 15px;
  font-weight: 600;
  color: oklch(35% 0.02 262);
}

.btn-secondary:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(98% 0.006 80 / 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

/*
 * 36px box renders a 27.3px glyph (the mark fills 75.8% of its canvas),
 * which is 1.29x the 21.1px cap height next to it — the icon leads the
 * lockup without overpowering the wordmark. Still under the 40px nav
 * button, so the header height is unchanged.
 */
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

/*
 * Sized so the cap height matches the icon's visual height. The mark only
 * fills 75.8% of its 128px canvas, so a 28px box renders a 21.2px glyph;
 * Inter's cap height is 0.7275em, giving 21.2 / 0.7275 = 29px.
 * line-height:1 collapses the half-leading so flex centring lines the two up.
 */
.brand span {
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: oklch(35% 0.02 262);
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .btn {
  color: oklch(99% 0.004 80);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding-block: 88px 64px;
}

.hero-copy {
  animation: fadeUp 0.7s ease-out both;
}

.hero-demo {
  animation: fadeUp 0.8s ease-out 0.1s both;
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.6;
  color: oklch(42% 0.02 262);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-currencies {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: oklch(55% 0.02 262);
}

/* --------------------------------------------------------------------------
   Browser frame — the product demonstration
   -------------------------------------------------------------------------- */

.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid oklch(92% 0.006 80);
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.browser-dot:nth-child(1) { background: oklch(85% 0.02 30); }
.browser-dot:nth-child(2) { background: oklch(85% 0.04 90); }
.browser-dot:nth-child(3) { background: oklch(80% 0.06 150); }

.browser-url {
  margin-left: 10px;
  background: var(--bg-subtle);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  color: oklch(53% 0.02 262);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-body {
  padding: 40px 32px 46px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.demo-price {
  font-size: clamp(28px, 6vw, 34px);
  font-weight: 700;
  color: oklch(20% 0.02 262);
}

/* The hover affordance the extension adds to a detected amount. */
.detected {
  border-bottom: 2px dotted var(--accent-dotted);
  padding-bottom: 2px;
}

/*
 * Mirrors the real extension tooltip: dark, small radius, soft shadow,
 * no arrow, no branding.
 */
.tooltip {
  display: inline-block;
  margin-top: 34px;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 14px 30px -12px oklch(0% 0 0 / 0.35);
  max-width: 100%;
}

.tooltip-value {
  display: block;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--tooltip-text);
}

.tooltip-meta {
  display: block;
  font-size: 12.5px;
  color: var(--tooltip-meta);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.demo-note {
  margin-top: 24px;
  font-size: 13px;
  color: oklch(56% 0.01 262);
}

.demo-note small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
}

.card-from {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
}

.card-arrow {
  margin: 14px 0;
  color: oklch(65% 0.01 262);
}

.card-to {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  color: var(--accent-strong);
}

/* Contextual examples */
.ctx {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
}

.ctx h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 16px;
}

.ctx-quote {
  font-size: 15px;
  color: oklch(30% 0.02 262);
  line-height: 1.6;
  margin-bottom: 18px;
}

.ctx-quote .detected {
  font-family: var(--font-mono);
}

.ctx-result {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
}

.closing-line {
  text-align: center;
  margin-top: 44px;
  font-size: 15px;
  color: oklch(50% 0.02 262);
  font-weight: 500;
}

/* Steps */
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: oklch(55% 0.14 258);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: oklch(20% 0.02 262);
  letter-spacing: normal;
}

/* Benefits */
.benefit h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: normal;
}

.benefit p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Privacy teaser
   -------------------------------------------------------------------------- */

.privacy-teaser {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.privacy-teaser h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 18px;
}

.privacy-teaser p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.privacy-teaser a {
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.cta-section {
  padding-bottom: var(--section-y);
}

.cta {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 16px;
}

.cta p {
  font-size: 17px;
  color: var(--dark-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-brand:hover {
  color: var(--text);
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-brand span {
  font-size: 15px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 14px;
  color: oklch(50% 0.02 262);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: oklch(40% 0.02 262);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Prose — privacy policy
   -------------------------------------------------------------------------- */

.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prose-header h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.prose-meta {
  font-size: 14px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.prose h2 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 14px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  margin-top: 14px;
  padding-left: 22px;
  list-style: disc;
}

.prose li {
  margin-bottom: 10px;
}

.prose li::marker {
  color: var(--accent-dotted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: oklch(35% 0.02 262);
  overflow-wrap: break-word;
}

/* A pulled-out statement of the key privacy fact. */
.callout {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 20px;
}

.callout p {
  color: var(--text-body);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 18px;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.6;
}

.prose th {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.prose thead tr {
  border-bottom: 2px solid var(--border);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    padding-block: 64px 48px;
    gap: 44px;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 20px;
    --section-y: 56px;
  }

  .hero {
    padding-block: 48px 40px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .browser-body {
    padding: 28px 22px 32px;
  }

  .cta {
    padding: 56px 24px;
  }

  .card,
  .ctx {
    padding: 26px 22px;
  }

  .prose h2 {
    margin-top: 36px;
  }

  [id] {
    scroll-margin-top: 130px;
  }
}

@media (max-width: 560px) {
  /* Two rows: brand, then a centred nav. Only three items, so no menu button
     and no JavaScript are needed. */
  .site-header .wrap {
    flex-direction: column;
    gap: 14px;
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .hero-actions {
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn {
    padding: 13px 22px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
