/* Terima SMS Online: global styles. Fonts are self-hosted (see /fonts).
   Direction: the page is a SIM card. Notched corner, ink rules, marker-yellow highlights, ultramarine plastic. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1020;
  --signal: #2740f2;
  --signal-deep: #1a2ebd;
  --signal-tint: #dfe5ff;
  --marker: #ffdd33;
  --sms: #14a35f;
  --mist: #edf0f7;
  --paper: #ffffff;
  --line: #c9d1e6;
  --text: #121a2e;
  --muted: #4a546b;
  --cut: 18px;
  --max-width: 1200px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "Cascadia Mono", monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--mist);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0 0 1.05rem; }
a { color: var(--signal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); background: var(--marker); text-decoration-color: transparent; }
strong { font-weight: 700; color: var(--ink); }
time { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.container { width: min(var(--max-width), 100% - 3rem); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.85; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--marker); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }

/* The signature shape: a notched top-right corner, like a SIM card */
.cut, .btn--primary, .table-wrap, .cta-card, .verdict, .rank-card, .ladder, .timeline, .faq details, .simcard {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.7rem 1.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.01em;
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.15s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --cut: 14px; background: var(--marker); color: var(--ink); border-color: var(--marker); }
.btn--primary:hover { background: var(--ink); color: var(--marker); border-color: var(--ink); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0.4rem 1rem; font-size: 0.95rem; --cut: 10px; }
a.btn:hover { text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 3px solid var(--ink); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.035em; }
.brand:hover { color: var(--ink); background: transparent; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.35rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; padding: 0.35rem 0; border-bottom: 3px solid transparent; letter-spacing: -0.01em; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background: transparent; color: var(--signal-deep); border-bottom-color: var(--marker); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 2px solid var(--ink); color: var(--ink); width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0.75rem;
    background: var(--paper); padding: 0.75rem 1.5rem 1.5rem; margin: 0;
    border-bottom: 3px solid var(--ink); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 0.85rem 0; font-size: 1.1rem; border-bottom: 1px dotted var(--ink); }
}

/* Footer */
.site-footer { background: var(--ink); color: #aeb8d4; padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer .container { display: grid; gap: 1.75rem; }
.site-footer a { color: #e9edff; }
.site-footer a:hover { color: var(--ink); background: var(--marker); }
.site-footer .brand { color: var(--paper); }
.footer__top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; max-width: 680px; }
.footer__note { margin: 0; max-width: 62ch; }
.footer__copy { margin: 0; border-top: 2px dotted #4a5578; padding-top: 1.25rem; color: #8b97b8; font-family: var(--font-mono); font-size: 0.82rem; }

/* Shared prose, tables */
:where(.prose) p { max-width: 68ch; }
:where(.prose) h1 { margin-bottom: 1.25rem; }
:where(.prose) h2:not(.section__head h2) { margin: 2.25rem 0 0.6rem; }
:where(.prose) h3 { margin: 2.25rem 0 0.6rem; }
:where(.prose) h3 + p { margin-top: 0; }

.table-wrap { overflow-x: auto; background: var(--paper); border-top: 4px solid var(--ink); margin: 1.5rem 0 0.75rem; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.5; }
caption { text-align: left; }
th, td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--paper); border-bottom: 2px solid var(--ink); white-space: nowrap; padding-block: 0.8rem; }
tbody th { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); letter-spacing: -0.015em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: #f5f7ff; }
.table-note { font-size: 0.9rem; color: var(--muted); margin: 0 0 1.25rem; max-width: 80ch; font-family: var(--font-mono); line-height: 1.55; }
.table-note em { font-style: normal; }
