/* Saad Digital Services — light, quiet storefront. One ink colour, one accent (burnt orange). */
:root {
	--bg: #FAFAF9;
	--card: #FFFFFF;
	--soft: #F5F5F2;
	--ink: #141414;
	--ink-2: #3A3A37;
	--muted: #6B6B66;
	--line: #E5E5E1;
	--line-2: #EFEFEB;
	--line-strong: #D4D4CE;
	--dash: #8A8A82;
	--accent: #C2410C;
	--accent-dark: #9A3412;
	--green: #15803D;
	--amber: #B45309;
	--red: #B91C1C;
	--radius: 14px;
	--radius-sm: 10px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, Menlo, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.section-title { font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--ink); color: #fff; font: 500 15px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: #333; border-color: #333; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { background: #fff; border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--big { min-height: 48px; padding: 0 24px; }
.btn--nav { min-height: 40px; margin-left: 8px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.buy { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--ink); font: 500 13px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.buy:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.buy--out { color: var(--muted); border-style: dashed; }
.buy--out:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.buy:disabled { opacity: .6; cursor: wait; }
.tbtn { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 13px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tbtn:hover { background: var(--line-2); }

/* Header */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: -0.3px; }
.brand__sub { font-size: 14px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--accent); }
.nav-link.is-current { box-shadow: inset 0 -2px 0 var(--ink); }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero__title { max-width: 820px; font-weight: 600; font-size: 68px; line-height: 70px; letter-spacing: -2.4px; text-wrap: balance; }
.hero__text { max-width: 540px; margin-top: 24px; font-size: 19px; line-height: 30px; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Category links */
.cat-tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .15s, color .15s; }
.cat-tab:hover { color: var(--accent); }
.cat-tab.is-active { box-shadow: inset 0 -2px 0 var(--ink); }

/* Price lists */
.category { padding-top: 64px; scroll-margin-top: 8px; }
.category .section-title { margin-bottom: 28px; }
.category__text { margin: -16px 0 24px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; align-items: start; }
.product { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.product__name { margin-bottom: 8px; font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: -0.2px; }
.product__note { margin-top: -6px; font-size: 13px; line-height: 20px; color: var(--muted); }
.plan-group { margin-top: 12px; }
.plan-group__name { margin-bottom: 2px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.plans { list-style: none; margin: 0; padding: 0; }
.plan { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.plan__label { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; }
.plan__price { font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__buy { margin: 0; }

/* How it works */
.how { padding-top: 96px; }
.how .section-title { margin-bottom: 32px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps__n { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--accent); }
.steps p { font-size: 15px; line-height: 24px; color: var(--ink-2); }

/* Contact */
.contact { padding: 96px 0; }
.contact__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; border-top: 1px solid var(--ink); }
.contact__text { flex: 1 1 360px; min-width: 0; }
.contact__text p { margin-top: 6px; color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 48px; font-size: 13px; line-height: 20px; color: var(--muted); }
.site-footer__links { display: flex; gap: 16px; }
.site-footer__links a { color: var(--ink); }

/* Plain pages, log in */
.page { padding: 56px 0 96px; }
.page__title { margin-bottom: 32px; font-weight: 600; font-size: 44px; line-height: 48px; letter-spacing: -1.4px; }
.sds-card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sds-muted { color: var(--muted); }
.sds-small { font-size: 14px; line-height: 20px; }
.sds-label { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--muted); }
.sds-auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: start; max-width: 880px; }
.sds-auth h2 { font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -0.6px; }
.sds-auth h2 + p { margin: 6px 0 20px; }
.sds-auth h2 + form, .sds-auth h2 + .sds-notice { margin-top: 20px; }
.sds-auth form p, .sds-form p { margin: 0 0 16px; }
.sds-auth label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.sds-auth input[type="text"], .sds-auth input[type="password"], .sds-auth input[type="email"], .sds-auth input[type="tel"] { width: 100%; min-height: 44px; padding: 10px 12px; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 16px var(--font); }
.sds-auth input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(20 20 20 / 8%); }
.sds-auth .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.sds-auth #wp-submit { width: 100%; min-height: 44px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--ink); color: #fff; font: 500 15px var(--font); cursor: pointer; }
.sds-auth #wp-submit:hover { background: #333; }
.sds-auth a { text-underline-offset: 3px; }
.sds-notice { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; border: 1px solid; }
.sds-notice--error { background: #FEF2F2; color: var(--red); border-color: #FECACA; }
.sds-notice--info { background: #F0FDF4; color: var(--green); border-color: #BBF7D0; }

/* My Account */
.sds-account .page__title { display: none; }
.sds-account__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sds-account__title { font-weight: 600; font-size: 44px; line-height: 48px; letter-spacing: -1.4px; }
.sds-account__head p { margin-top: 8px; }
.sds-only-narrow { display: none; }
.sds-section { margin-top: 64px; }
.sds-section .section-title { margin-bottom: 24px; }

.sds-wallet { display: flex; flex-wrap: wrap; margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sds-wallet__balance { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; }
.sds-wallet__amount { margin-top: 8px; font-weight: 600; font-size: 56px; line-height: 56px; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.sds-topup { flex: 1.4 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--soft); border-left: 1px solid var(--line); }
.sds-topup__title { font-weight: 600; font-size: 16px; line-height: 24px; }
.sds-whish__number { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; background: #fff; border: 1px dashed var(--dash); border-radius: var(--radius-sm); color: var(--ink); font: 600 22px var(--font); letter-spacing: .5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sds-whish__number:hover { border-color: var(--ink); }
.sds-whish__number span { white-space: nowrap; }
.sds-whish__number small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--accent); white-space: nowrap; }
.sds-topup__steps { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 20px; font-size: 14px; line-height: 22px; color: var(--ink-2); }

.sds-subs { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: start; margin: 0; padding: 0; }
.sds-sub { display: flex; flex-direction: column; gap: 20px; }
.sds-sub.is-new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sds-sub--cancelled { opacity: .7; }
.sds-sub__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sds-sub__name { min-width: 0; }
.sds-sub h3 { font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: -0.2px; }
.sds-sub__name p { font-size: 14px; line-height: 20px; }
.sds-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--green); }
.sds-badge > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sds-badge--ending { color: var(--amber); }
.sds-badge--expired { color: var(--red); }
.sds-badge--cancelled { color: var(--muted); }
.sds-sub__dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sds-sub__dates dt { font-size: 12px; line-height: 16px; color: var(--muted); }
.sds-sub__dates dd { margin: 2px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.sds-sub__dates .sds-sub__left { font-weight: 600; color: var(--green); }
.sds-sub--ending .sds-sub__left { color: var(--amber); }
.sds-sub--expired .sds-sub__left { color: var(--red); }
.sds-sub--cancelled .sds-sub__left { color: var(--muted); }
.sds-login { padding: 4px 12px; background: var(--soft); border-radius: var(--radius-sm); }
.sds-login__row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.sds-login__row + .sds-login__row { border-top: 1px solid var(--line); }
.sds-login__label { flex: 0 0 64px; font-size: 12px; color: var(--muted); }
.sds-login__value { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 500 13px/20px var(--mono); color: var(--ink); }
.sds-login__updated { margin-top: -12px; }
.sds-renew { margin: 0; }
.sds-empty p + p { margin-top: 8px; }
.sds-empty .btn { margin-top: 8px; }

.sds-history { padding: 8px 16px; overflow-x: auto; }
.sds-history table { width: 100%; min-width: 480px; border-collapse: collapse; }
.sds-history th { padding: 10px 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); text-align: left; }
.sds-history td { padding: 12px 8px; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 20px; }
.sds-history .sds-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sds-history__date { color: var(--muted); white-space: nowrap; }
.sds-history__amount { font-weight: 600; }
.sds-history .is-plus { color: var(--green); }

/* Phones */
@media (max-width: 720px) {
	.wrap { padding: 0 16px; }
	.nav-hide { display: none !important; }
	.site-header__inner { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
	.btn { min-height: 48px; }
	.btn--nav { min-height: 44px; margin-left: 0; }
	.buy, .tbtn { min-height: 44px; }
	.section-title { font-size: 24px; line-height: 30px; letter-spacing: -0.6px; }

	.hero { padding: 48px 0 40px; }
	.hero__title { font-size: 40px; line-height: 42px; letter-spacing: -1.2px; }
	.hero__text { margin-top: 20px; font-size: 17px; line-height: 27px; }
	.hero__actions { flex-direction: column; margin-top: 28px; }
	.cat-tabs { gap: 20px; }
	.category { padding-top: 44px; }
	.category .section-title { margin-bottom: 20px; }
	.products { grid-template-columns: 1fr; gap: 16px; }
	.product { padding: 20px; }
	.product__name { margin-bottom: 4px; font-size: 17px; line-height: 24px; letter-spacing: 0; }
	.plan { padding: 4px 0; }
	.how { padding-top: 64px; }
	.how .section-title { margin-bottom: 24px; }
	.steps { display: flex; flex-direction: column; gap: 0; padding: 0; }
	.steps li { flex-direction: row; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.steps__n { flex: none; width: 24px; line-height: 24px; }
	.contact { padding: 56px 0; }
	.contact__inner { display: block; padding: 0; border-top: 0; }
	.contact__text { margin-bottom: 20px; }
	.contact__actions { flex-direction: column; }
	.site-footer__inner { flex-direction: column-reverse; padding-top: 12px; padding-bottom: 40px; }
	.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

	.page { padding: 32px 0 48px; }
	.page__title { margin-bottom: 24px; font-size: 36px; line-height: 40px; letter-spacing: -1.1px; }
	.sds-only-wide { display: none; }
	.sds-only-narrow { display: inline; }
	a.sds-only-narrow { display: inline-flex; }
	.sds-account__title { font-size: 36px; line-height: 40px; letter-spacing: -1.1px; }
	.sds-account__head p { margin-top: 6px; }
	.sds-wallet { display: block; margin-top: 28px; }
	.sds-wallet__balance { padding: 24px; gap: 8px; }
	.sds-wallet__amount { margin-top: 6px; font-size: 48px; line-height: 48px; letter-spacing: -1.6px; }
	.sds-topup { gap: 14px; padding: 20px 24px 24px; border-left: 0; border-top: 1px solid var(--line); }
	.sds-topup .btn { width: 100%; }
	.sds-whish__number { gap: 8px; padding: 0 14px; font-size: 19px; letter-spacing: 0; }
	.sds-whish__number small { font-size: 12px; }
	.sds-order-new { margin-top: 12px; }
	.sds-section { margin-top: 48px; }
	.sds-section .section-title { margin-bottom: 16px; }
	.sds-subs { grid-template-columns: 1fr; gap: 16px; }
	.sds-sub { padding: 20px; gap: 16px; }
	.sds-sub h3 { font-size: 17px; line-height: 24px; letter-spacing: 0; }
	.sds-sub__dates { gap: 8px; }
	.sds-sub__dates dd { font-size: 13px; line-height: 18px; }
	.sds-login { padding: 0 12px; }
	.sds-login__row { min-height: 48px; gap: 4px; }
	.sds-login__label { flex-basis: 60px; }
	.tbtn { padding: 0 8px; }

	/* History becomes a list: what + amount, then date · balance. */
	.sds-history { padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
	.sds-history table { min-width: 0; }
	.sds-history thead { display: none; }
	.sds-history tr { display: grid; grid-template-columns: max-content 1fr auto; grid-template-areas: "what what amount" "date after amount"; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.sds-history td { padding: 0; border: 0; }
	.sds-history__what { grid-area: what; }
	.sds-history__amount { grid-area: amount; font-size: 15px; }
	.sds-history__date, .sds-history__after { font-size: 12px; line-height: 16px; color: var(--muted); }
	.sds-history__date { grid-area: date; }
	.sds-history__after { grid-area: after; text-align: left !important; font-weight: 400; }
	.sds-history__after::before { content: "· "; }
	.sds-history .sds-num.sds-history__amount { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .buy, .cat-tab { transition: none; }
}
