/* CogniTel: navy and coral, one column of readable tables. No framework, no web fonts. */
:root {
	--navy: #102a43;
	--navy-2: #243b53;
	--ink: #102a43;
	--muted: #52667a;
	--line: #d9e2ec;
	--bg: #f0f4f8;
	--surface: #ffffff;
	--link: #0b6e99;
	--coral: #e0552a;
	--coral-pressed: #c2461f;
	--coral-soft: #fff1ec;
	--green: #1f7a4d;
	--green-soft: #e6f4ec;
	--radius: 12px;
	--radius-small: 8px;
	--shadow: 0 1px 2px rgba(16, 42, 67, 0.06), 0 6px 18px rgba(16, 42, 67, 0.06);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.02rem; line-height: 1.6; color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--coral-pressed); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0 0 0.6em; }
h3 { font-size: 1.12rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius-small); z-index: 20; }
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ masthead */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.masthead-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.primary-nav { display: none; margin-inline-start: auto; gap: 4px; }
.primary-nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.96rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--bg); color: var(--navy); }
.menu { position: relative; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: var(--shadow); }
.menu-list a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.menu-list a:hover { background: var(--bg); }
@media (min-width: 860px) { .primary-nav { display: flex; } .nav-menu { display: none; } }

/* ------------------------------------------------------------ hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #d9e2ec; padding: 22px 0 38px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.12rem; max-width: 46rem; color: #d9e2ec; }
.hero a { color: #fff; }
.eyebrow { margin: 18px 0 0; font-weight: 650; color: #f6a07f; }
.hero-flag { font-size: 1.3rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.9rem; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #9fb3c8; }
.breadcrumbs a { color: #d9e2ec; }
.breadcrumbs [aria-current] { color: #fff; }

/* ------------------------------------------------------------ sections */
.section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--bg); }
.section-lead { color: var(--muted); max-width: 50rem; }
.answer-list { display: grid; gap: 10px; margin: 0; }
@media (min-width: 760px) { .answer-list { grid-template-columns: 1fr 1fr; } }
.answer-list > div { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--coral); border-radius: var(--radius-small); padding: 12px 16px; }
.answer-list dt { font-weight: 700; color: var(--navy); }
.answer-list dd { margin: 2px 0 0; }
.arrow-link { font-weight: 650; }
.arrow-link::after { content: " \2192"; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
/* Buy opens the store's checkout in the same tab; the store sends the buyer back here. */
.btn-buy { background: var(--coral); color: #fff; }
.btn-buy:hover, .btn-buy:focus-visible { background: var(--coral-pressed); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 0.92rem; }
.btn-quiet { background: transparent; color: inherit; border-color: currentColor; }
.btn[hidden] { display: none; }

/* ------------------------------------------------------------ tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: #f7f9fb; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 650; }
.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plans .link-cell { text-align: end; width: 1%; white-space: nowrap; vertical-align: middle; }
.plans tbody th, .plans td { vertical-align: middle; }
.roaming td:nth-child(3) { white-space: nowrap; }
@media (max-width: 639px) {
	table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	table.stack, table.stack tbody, table.stack tr, table.stack tbody th, table.stack td { display: block; width: 100%; }
	table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
	table.stack tbody tr:last-child { border-bottom: 0; }
	table.stack tbody th, table.stack td { border: 0; padding: 2px 0; text-align: start; white-space: normal; }
	table.stack tbody th { font-size: 1.04rem; margin-bottom: 4px; }
	table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); font-size: 0.88rem; }
	table.stack .link-cell { padding-top: 6px; text-align: start; width: auto; }
}

/* Regional plans ("... and nearby countries"): rows like the plans table, the names,
   details and Buy buttons in columns shared by every row; on a phone the button sits
   beside the two lines of text. Without subgrid, each row wraps on its own. */
.bundle-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.bundle-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 14px; }
.bundle-list li + li { border-top: 1px solid var(--line); }
.bundle-list bdi { font-weight: 650; }
.bundle-list .btn { margin-inline-start: auto; white-space: nowrap; }
@supports (grid-template-columns: subgrid) {
	.bundle-list { display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; }
	.bundle-list li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; row-gap: 2px; }
	.bundle-list .btn { margin: 0; justify-self: end; }
	@media (max-width: 639px) {
		.bundle-list { grid-template-columns: 1fr auto; }
		.bundle-list bdi, .bundle-list li > .muted { grid-column: 1; }
		.bundle-list .btn { grid-column: 2; grid-row: 1 / span 2; }
	}
}

/* ------------------------------------------------------------ cards and lists */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.card a:hover { border-color: var(--coral); }
.card-flag { font-size: 1.4rem; }
.card-name { font-weight: 750; color: var(--navy); font-size: 1.08rem; }
.card-charge { font-size: 0.9rem; color: var(--muted); }
.card-charge b { color: var(--ink); }
.card-meta { margin-top: 4px; font-weight: 650; color: var(--coral-pressed); }
.region-group { margin-top: 28px; }
.jump-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump-list a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--surface); }
.basics { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .basics { grid-template-columns: 1fr 1fr; } }
.basics a { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.basics a:hover { border-color: var(--coral); }
.basics strong { color: var(--navy); }
.basics span { color: var(--muted); font-size: 0.95rem; }
.steps { padding-inline-start: 1.4em; max-width: 52rem; }
.steps li { margin-bottom: 10px; }
.checklist { padding-inline-start: 1.2em; max-width: 52rem; }
.checklist li { margin-bottom: 8px; }

/* ------------------------------------------------------------ questions */
.faq { display: grid; gap: 8px; max-width: 52rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 0 16px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: inline; font-size: 1.02rem; margin: 0; }
.faq-item summary::after { content: "+"; float: inline-end; font-weight: 700; color: var(--coral); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a p { margin-top: 0; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy); color: #bcccdc; padding: 40px 0 24px; }
.site-footer a { color: #d9e2ec; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-heading { font-size: 0.95rem; color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-small { font-size: 0.86rem; color: #9fb3c8; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 16px; font-size: 0.85rem; color: #9fb3c8; }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
	.masthead, .site-footer, .btn-buy, .skip-link { display: none; }
	.hero { background: none; color: #000; }
	.hero h1, .hero .lead { color: #000; }
}
