/* ==========================================================================
   Domain store — base stylesheet.
   Palette copied verbatim from the Xtoys.UK storefront
   (xtoys/public/css/app.css): token names and hex values are unchanged.
   Only the component roles are rewritten, because a domain search is not a
   product grid — see the role notes on each token.
   Hand-written CSS, no build step, same as Xtoys.
   ========================================================================== */
:root{
  /* ---- neutrals ---- */
  --bg:#ffffff;      /* page ground */
  --alt:#f5f7fa;     /* section bands, disabled controls, muted pills */
  --line:#e2e7ee;    /* every border in the UI (the most-used token in Xtoys) */
  --text:#101418;    /* body copy */
  --muted:#646d7a;   /* secondary copy, labels, struck-through prices */

  /* ---- brand ---- */
  --red:#d5121a;     /* accent + primary CTA: Search, Add to basket, price figures */
  --red-d:#a80c10;   /* hover of the red CTA */
  --navy:#0a2e4d;    /* structure: top bar, secondary buttons, card hover shadow */
  --blue:#2b98d0;    /* informational highlights */
  --cyan:#8fddf3;    /* footer link hover only */

  /* Brand red at ~25% over white — same colour family, quiet enough to outline
     a card without competing with the content. */
  --red-soft:#f2c0c2;

  /* Darkened from #0a8a48, which failed WCAG AA at 4.43:1 even on plain white,
     and 3.96–4.13:1 on the pale green tints it sits on — all at 11–13.5px, so
     none of them qualify as large text. #07713b clears 5.4:1 on every one of
     those backgrounds, and white-on-green improves from 4.43 to 6.11.
     In this store green carries the single most important state there is:
     "this domain is available". */
  --green:#07713b;
  --amber:#f5a623;   /* warnings, premium/aftermarket flags */

  --footer:#082439;  /* one step darker than --navy, as in Xtoys */
}

*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.wrap{max-width:1320px;margin:0 auto;padding:0 20px}

/* ---------- header ---------- */
/* Bold throughout, white throughout: at 12px on navy, regular weight reads as
   thin and washed even at 13.9:1 contrast. */
.top{background:var(--navy);color:#fff;font-size:12px;font-weight:600}
.top .wrap{display:flex;align-items:center;gap:22px;height:36px;flex-wrap:nowrap;overflow:hidden}
.top-item{white-space:nowrap}
/* Each claim is prefixed with a tick so the bar reads as a list of facts
   rather than a strapline. */
.top-item:not(.top-right):before{content:"✓";color:var(--cyan);margin-right:6px;font-weight:700}
.top-right{margin-left:auto;font-weight:400;color:#c6d4e1}
.top-right a{color:#fff;text-decoration:underline}

.mast{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:40}
.mast.is-stuck{box-shadow:0 10px 24px -20px rgba(10,46,77,.7)}
.mast .wrap{display:flex;align-items:center;gap:26px;height:70px}

.logo{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:800;
  letter-spacing:-.02em;color:var(--navy)}
.logo-mark{color:var(--red);display:flex}
.logo-text span{color:var(--red)}

.nav{display:flex;gap:22px;font-size:14px;font-weight:600;margin-left:14px}
.nav a{padding:6px 0;border-bottom:2px solid transparent}
.nav a:hover{color:var(--red)}
/* The current section is marked, which is the difference between a real nav
   and a row of links. */
.nav a.is-current{color:var(--red);border-bottom-color:var(--red)}

.mast-actions{display:flex;align-items:center;gap:14px;margin-left:auto}
/* Hidden on desktop; the CSS-only toggle below drives it on phones. */
.nav-burger{display:none;cursor:pointer;color:var(--navy);padding:6px;margin-left:auto}
.nav-burger .burger-close{display:none}
/* The in-menu account block is mobile-only; the bar shows the real one. */
.nav-account{display:none}
.basket{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;
  color:var(--navy);position:relative}
.basket:hover{color:var(--red)}
.basket-count{background:var(--red);color:#fff;font-size:10.5px;font-weight:800;
  border-radius:999px;min-width:17px;height:17px;display:grid;place-items:center;padding:0 5px}
.link-button{background:none;border:0;font:inherit;font-size:14px;font-weight:600;
  color:var(--navy);cursor:pointer;padding:0}
.link-button:hover{color:var(--red)}

/* ---------- price table ---------- */
/* Tables are the one thing allowed to scroll sideways; the page never does. */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.price-table{width:100%;border-collapse:collapse;font-size:14px;min-width:100%}
.price-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;
  color:var(--muted);padding:12px 16px;border-bottom:1px solid var(--line)}
.price-table td{padding:13px 16px;border-bottom:1px solid var(--line);font-weight:700;color:var(--text)}
.price-table tr:last-child td{border-bottom:0}
.price-table .per{font-size:11.5px;font-weight:400;color:var(--muted)}
.price-table tr:hover{background:var(--alt)}

/* ---------- buttons ---------- */
.btn{display:inline-block;padding:15px 30px;border-radius:8px;font-weight:700;font-size:15px;
  border:0;cursor:pointer;font-family:inherit}
.btn-p{background:var(--red);color:#fff;box-shadow:0 8px 20px -8px rgba(213,18,26,.75)}
.btn-p:hover{background:var(--red-d)}
.btn-o{border:2px solid var(--navy);color:var(--navy);background:#fff}
.btn-n{background:var(--navy);color:#fff}
.btn-sm{padding:10px 18px;font-size:13px;border-radius:7px}
.btn-wide{width:100%;text-align:center}
.btn[disabled],.btn:disabled{background:var(--alt);color:var(--muted);
  border-color:var(--line);box-shadow:none;cursor:not-allowed}

/* ---------- centred hero ---------- */
/* The lede and the search box both have their own max-width, so centring the
   text alone would leave them hugging the left edge — each needs margin:auto
   as well. */
/* 56px here left a visible dead band under the header and pushed the search
   box — the page's whole purpose — further down the screen. */
.hero-centred{padding:28px 20px 34px;text-align:center}
.hero-centred .lede{margin-left:auto;margin-right:auto}
.hero-centred .search{margin-left:auto;margin-right:auto}
/* The input keeps its own left-aligned text: centred placeholder text in a
   field people type into reads as a mistake. */
.hero-centred .search input{text-align:left}

/* ---------- domain search ---------- */
/* The search bar is the whole shop front — it gets the brand red, and the
   navy-tinted shadow that Xtoys uses to lift cards off the page. */
.search{display:flex;gap:10px;max-width:760px}
.search input{flex:1;padding:16px 18px;font-size:16px;font-family:inherit;
  border:1px solid var(--line);border-radius:8px;color:var(--text);
  box-shadow:0 12px 30px -22px rgba(10,46,77,.55)}
.search input:focus{outline:2px solid var(--navy);outline-offset:1px;border-color:var(--navy)}

/* One result row per TLD. Availability is the only thing the eye should find
   first, so state colour sits on the pill, never on the domain name. */
.result{display:flex;align-items:center;gap:14px;padding:14px 16px;
  border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:8px}
.result:hover{box-shadow:0 16px 34px -18px rgba(10,46,77,.5)}
.result .name{font-size:15.5px;font-weight:700;color:var(--navy)}
.result .tld{color:var(--red)}
/* Right-aligned so every price lines up against the Add button. Left-aligned,
   each block's left edge moved with its widest line, and the .ai row — which
   carries a minimum-term note — sat visibly out of line with the rest. */
.result .cost{margin-left:auto;font-size:18px;font-weight:700;color:var(--red);text-align:right}
.result .cost s{font-size:12px;font-weight:400;color:var(--muted);margin-right:6px}
.result .renew{font-size:11.5px;color:var(--muted)}
/* Registration date sits under the name, quiet enough not to compete with it. */
.name-note{display:block;font-size:11.5px;font-weight:400;color:var(--muted);margin-top:2px}
.lock-note{color:var(--red-d)}
.result-actions{display:flex;align-items:center;gap:12px}
/* The domain they actually typed, lifted out of the list. */
.result.exact{border-color:var(--navy);border-width:2px}
.result-heading{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;
  color:var(--muted);margin:26px 0 10px}
.result-subhead{font-size:12.5px;color:var(--muted);margin:-6px 0 10px}
.exact-note{font-size:13px;color:var(--muted);margin:10px 0 4px}
.exact-note strong{color:var(--navy)}
.whois-link{font-size:11.5px;color:var(--muted);text-decoration:underline;white-space:nowrap}
.whois-link:hover{color:var(--navy)}
.result.taken{background:var(--alt)}
.result.taken .name{color:var(--muted)}

/* ---------- extension tiles ---------- */
.tiles-wrap{padding:0 20px 44px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1000px;margin:0 auto}
.tile{border:1px solid var(--line);border-radius:10px;background:#fff;padding:18px 18px 12px;
  transition:.16s}
.tile:hover{box-shadow:0 16px 34px -18px rgba(10,46,77,.5)}
.tile h3{font-size:15px;font-weight:800;color:var(--navy);margin-bottom:4px}
.tile-blurb{font-size:12.5px;color:var(--muted);margin-bottom:12px;line-height:1.45}
.tld-list{list-style:none;margin:0;padding:0}
.tld-list li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;
  padding:8px 0;border-top:1px solid var(--line)}
.tld-name{font-size:14px;font-weight:700;color:var(--red)}
.tld-price{font-size:14px;font-weight:700;color:var(--text);text-align:right}
/* Renewal sits under the headline price, quiet but present. */
.tld-renew{display:block;font-size:11px;font-weight:400;color:var(--muted)}

/* ---------- filter chips ---------- */
.search-advanced-link{font-size:12.5px;color:var(--muted);margin-top:10px}
.search-advanced-link a{color:var(--red);font-weight:700;text-decoration:underline}

.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:10px}
.chip{display:inline-block;font-size:13px;font-weight:700;padding:8px 14px;border-radius:999px;
  border:1px solid var(--line);background:#fff;color:var(--navy);transition:.14s}
.chip:hover{border-color:var(--navy)}
.chip-on{background:var(--navy);border-color:var(--navy);color:#fff}
.chips-sub{padding-top:6px;border-top:1px dashed var(--line)}
.chip-sub{font-weight:600;font-size:12.5px;padding:6px 12px}
.chip-sub.chip-on{background:var(--red);border-color:var(--red)}
/* The country list is long; cap it and let it scroll rather than pushing the
   results off the page. */
/* A-Z index: fixed-width squares so the row reads as an index, not as tags. */
.alpha-index{gap:5px}
.chip-letter{min-width:32px;text-align:center;padding:6px 8px;font-size:13px}

.ext-grid{display:flex;flex-wrap:wrap;gap:8px}
.ext-pill{font-size:13px;font-weight:700;color:var(--red);background:var(--alt);
  border:1px solid var(--line);border-radius:7px;padding:7px 11px}

/* ---------- cards ---------- */
.card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;
  transition:.16s;display:flex;flex-direction:column}
.card:hover{box-shadow:0 16px 34px -18px rgba(10,46,77,.5);transform:translateY(-2px)}
.card .body{padding:14px;display:flex;flex-direction:column;flex:1}
.card h3{font-size:14px;font-weight:700;line-height:1.4;margin-bottom:8px;color:#1b2330}
.card-empty{text-align:center;padding:26px 16px;color:var(--muted);font-size:13.5px}

/* ---------- state pills ---------- */
.pill{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.03em;
  padding:4px 10px;border-radius:999px;text-transform:uppercase}
.pill-ok{background:#e6f6ed;color:var(--green)}      /* available */
.pill-wait{background:#fff4e0;color:#8a5a00}          /* pending / processing */
.pill-go{background:#e7f2fb;color:#0b5f92}            /* transfer in progress */
.pill-off{background:var(--alt);color:var(--muted)}   /* taken / expired */
.pill-bad{background:#fdeeed;color:var(--red-d)}      /* failed / suspended */

/* ---------- sections ---------- */
.band{background:var(--alt);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
h1{font-size:50px;line-height:1.06;letter-spacing:-.035em;margin-bottom:16px}
h1 span{color:var(--red)}
.lede{color:var(--muted);font-size:15px;line-height:1.5;margin-bottom:14px;max-width:46ch}

/* ---------- hosting plans ---------- */
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1040px;margin:0 auto}
.plan{border:1px solid var(--line);border-radius:10px;background:#fff;padding:20px;
  display:flex;flex-direction:column;transition:.16s;position:relative}
/* The plan already in the basket. Only one of these can be on screen: the
   basket replaces a hosting plan rather than stacking a second one. */
.plan-chosen{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy) inset}
.plan-tag{position:absolute;top:-9px;left:20px;background:var(--navy);color:#fff;
  font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  padding:3px 8px;border-radius:99px}
.plan-note{font-size:12.5px;color:var(--muted);margin-top:4px}
.btn[disabled]{opacity:.55;cursor:default;pointer-events:none}
.plan:hover{box-shadow:0 16px 34px -18px rgba(10,46,77,.5)}
.plan h3{font-size:15px;font-weight:800;color:var(--navy);margin-bottom:5px}
.plan-summary{font-size:12.5px;color:var(--muted);line-height:1.45;margin-bottom:12px}
.plan-price{font-size:28px;font-weight:800;color:var(--red);letter-spacing:-.02em;margin-bottom:12px}
.plan-price span{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0}
.plan-features{list-style:none;margin:0 0 16px;padding:0;flex:1}
.plan-features li{font-size:13px;color:var(--text);padding:6px 0 6px 20px;position:relative;
  border-top:1px solid var(--line)}
/* Tick drawn in the accessible green, not an image. */
.plan-features li:before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:700}

/* ---------- basket add-ons ---------- */
.addons{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.addon{border:1px solid var(--line);border-radius:10px;background:#fff;padding:16px;
  display:flex;flex-direction:column;transition:.16s}
.addon:hover{box-shadow:0 16px 34px -18px rgba(10,46,77,.5)}
.addon-body{flex:1}
.addon h3{font-size:14.5px;font-weight:800;color:var(--navy);margin-bottom:5px}
.addon p{font-size:12.5px;color:var(--muted);line-height:1.45;margin-bottom:9px}
.addon-features{list-style:none;margin:0 0 12px;padding:0}
.addon-features li{font-size:12px;color:var(--text);padding:3px 0 3px 15px;position:relative}
.addon-features li:before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:700}
.addon-price{font-size:19px;font-weight:800;color:var(--red);margin-bottom:9px}
.addon-price span{font-size:12px;font-weight:600;color:var(--muted)}
.addon-select{width:100%;margin-bottom:8px;padding:8px 10px;font-size:13px;font-family:inherit;
  border:1px solid var(--line);border-radius:7px}

/* ---------- services ---------- */
.services-band{padding:44px 0}
.services-head{text-align:center;margin-bottom:24px}
.services-head h2{font-size:26px;letter-spacing:-.02em;color:var(--navy);margin-bottom:6px}
.services-head p{color:var(--muted);font-size:14.5px}
.services-head p a{color:var(--red);font-weight:700;text-decoration:underline}
.services{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1000px;margin:0 auto}
.service{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;
  padding:18px;transition:.16s}
.service h3{font-size:15px;font-weight:800;color:var(--navy);margin-bottom:6px}
.service p{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:12px}
/* Only the live ones lift on hover — a card that cannot be clicked should not
   behave as though it can. */
a.service:hover{box-shadow:0 16px 34px -18px rgba(10,46,77,.5);transform:translateY(-2px);
  border-color:var(--red-soft)}
.service-go{font-size:13px;font-weight:700;color:var(--red)}
.service-soon{opacity:.75}

/* ---------- blog cards ---------- */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1040px;margin:0 auto}
.post-card{display:block;border:1px solid var(--line);border-radius:10px;background:#fff;
  padding:18px;transition:.16s}
.post-card:hover{box-shadow:0 16px 34px -18px rgba(10,46,77,.5);transform:translateY(-2px);
  border-color:var(--red-soft)}
.post-cat{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--red);display:block;margin-bottom:6px}
.post-card h3{font-size:15px;font-weight:700;line-height:1.35;color:var(--navy);margin-bottom:7px}
.post-card p{font-size:12.5px;color:var(--muted);line-height:1.5;margin-bottom:10px}
.post-meta{font-size:11.5px;color:var(--muted)}

/* Article body. Measure is capped for readability rather than filling the page. */
.prose{margin-top:20px;font-size:15.5px;line-height:1.7}
.prose p{margin-bottom:16px}
.prose h3{font-size:18px;color:var(--navy);margin:26px 0 10px}
.prose ul{margin:0 0 16px 20px}
.prose li{margin-bottom:7px}
.prose strong{color:var(--navy)}
.prose a{color:var(--red);text-decoration:underline}

/* ---------- closing search band ---------- */
/* Dark, to close the page the way the top bar opens it. */
.closing{background:var(--footer);color:#fff;padding:48px 0;margin-top:44px}
.closing h2{font-size:30px;letter-spacing:-.025em;margin-bottom:8px}
.closing > .wrap > p{color:#c6d4e1;font-size:14.5px;margin-bottom:16px;max-width:60ch}
.closing .search{max-width:720px}
.closing-note{font-size:13px;color:#c6d4e1;margin-top:12px}
.closing-note a{color:#fff;text-decoration:underline}

/* ---------- faqs ---------- */
.faq-wrap{padding:48px 20px 56px}
.faq-cat{font-size:16px;color:var(--navy);margin:26px 0 10px;padding-bottom:7px;
  border-bottom:2px solid var(--line);max-width:1040px;margin-left:auto;margin-right:auto}
/* Two columns, compact rows: 20 questions in one column would be a wall. */
.faqs{column-count:2;column-gap:18px;max-width:1040px;margin:0 auto}
.faq{break-inside:avoid;border:1px solid var(--line);border-radius:8px;background:#fff;
  margin-bottom:8px;padding:0 14px}
.faq summary{cursor:pointer;list-style:none;padding:11px 0;font-size:13.5px;font-weight:600;
  color:var(--navy);display:flex;justify-content:space-between;align-items:center;gap:10px}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";color:var(--red);font-weight:700;font-size:16px;line-height:1}
.faq[open] summary:after{content:"–"}
.faq p{font-size:13px;color:var(--muted);line-height:1.6;padding:0 0 13px}

/* ---------- footer ---------- */
footer{background:var(--footer);padding:40px 0 24px;font-size:13.5px;line-height:1.6;color:#dbe6ef;
  /* A hairline above the footer so it reads as a separate region from the dark
     closing band directly above it — without it the two merge into one slab
     and the page looks like it has a second header near the bottom. */
  border-top:3px solid rgba(255,255,255,.08)}
footer p{color:#c6d4e1}
footer h4{color:#fff;font-size:13px;margin-bottom:14px;font-weight:800;letter-spacing:.02em}
footer li{list-style:none;margin-bottom:10px}
footer a{color:#e8f0f7}
footer a:hover{color:var(--cyan)}
footer ul{margin:0;padding:0}

.foot-grid{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:28px;
  padding-bottom:26px;border-bottom:1px solid rgba(255,255,255,.12)}
.foot-brand p{font-size:13px;max-width:34ch}
.foot-bottom{padding-top:18px;font-size:12.5px}
.foot-bottom p{margin-bottom:4px}
.foot-bottom a{text-decoration:underline}

/* ---------- cookie notice ---------- */
.cookie-notice{position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -12px 30px -24px rgba(10,46,77,.6)}
.cookie-inner{max-width:1320px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;
  gap:16px;justify-content:space-between}
.cookie-inner p{font-size:13px;color:var(--muted);margin:0}
.cookie-inner a{color:var(--red);font-weight:700;text-decoration:underline}
.cookie-inner .btn{flex-shrink:0}

@media(max-width:768px){
  .top{display:none}
  /* ---- mobile header ---- */
  /* min-height, NOT height: a fixed height on a wrapping flex row clips the
     menu when it opens — it was rendering at full height and invisible. */
  .mast .wrap{gap:10px;min-height:60px;height:auto;flex-wrap:wrap;position:relative;
    padding-top:8px;padding-bottom:8px}
  .nav-burger{display:flex;align-items:center}

  /* The basket stays visible at all times — it is the one control a shopper
     needs without opening a menu. Everything else collapses. */
  .mast-actions{order:2;margin-left:0;gap:10px}
  .mast-actions .btn,
  .mast-actions .link-button,
  .mast-actions form{display:none}
  .mast-actions .basket{display:flex}

  /* The panel itself: full width, below the bar, closed by default. */
  .nav{order:4;width:100%;margin-left:0;flex-direction:column;gap:0;
    display:none;border-top:1px solid var(--line);padding:6px 0 10px}
  .nav a{padding:13px 2px;font-size:15px;border-bottom:1px solid var(--line);
    border-left:3px solid transparent}
  .nav a:last-child{border-bottom:0}
  .nav a.is-current{border-bottom-color:var(--line);border-left-color:var(--red);padding-left:10px}

  /* Account links move into the menu on mobile, where the bar has no room. */
  .nav-account{display:flex;flex-direction:column;gap:10px;padding:14px 2px 2px;width:100%}
  .nav-account .btn{width:100%;text-align:center}

  .nav-toggle:checked ~ .nav{display:flex}
  .nav-toggle:checked ~ .nav-burger .burger-open{display:none}
  .nav-toggle:checked ~ .nav-burger .burger-close{display:block}
  /* Transfer column and the per-row Search button go: the price is what
     matters on a phone, and the whole page is a search away anyway. */
  .price-table th:nth-child(3),.price-table td:nth-child(3){display:none}
  .price-table th:nth-child(5),.price-table td:nth-child(5){display:none}
  .price-table th,.price-table td{padding-left:12px;padding-right:12px}
  .tiles{grid-template-columns:1fr}
  .services{grid-template-columns:1fr}
  .addons{grid-template-columns:1fr}
  .plans{grid-template-columns:1fr}
  .posts{grid-template-columns:1fr}
  .faqs{column-count:1}
  .closing h2{font-size:24px}
  .hero-centred{padding:20px 20px 26px}
  .foot-grid{grid-template-columns:1fr 1fr;gap:20px}
  .cookie-inner{flex-direction:column;align-items:flex-start;gap:10px}
  h1{font-size:30px}
  .search{flex-direction:column}
  .result{flex-wrap:wrap}
  .result .cost{margin-left:0;text-align:left}
}
