:root{
  /* Palette */
  --ink:#1B2B34;          /* deep slate */
  --muted:#5C6B73;        /* soft grey */
  --paper:#FFFFFF;        /* cards */
  --bg:#F5F7F9;           /* page */
  --accent:#0E7C7B;       /* teal */
  --accent-2:#D97706;     /* amber */
  --line:#E5EAF0;         /* borders */
  --radius:18px;
  --shadow:0 10px 28px rgba(0,0,0,.10);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .6px;
  background:linear-gradient(180deg, #fff, var(--bg));
  color:var(--ink);
  line-height:1.7;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "liga", "kern";
  font-size: 22px;
}
small {font-size:13px;line-height:1;}
a{color:var(--accent);text-decoration:none}

/* ===== HERO ===== */
.hero{
  position:relative;
  min-height:66vh;
  display:grid;
  place-items:center;
  text-align:center;
  color:#fff;
  padding:42px 18px;
  background:
    linear-gradient(0deg, rgba(0,0,0,.15), rgba(0,0,0,.15)),
    url("/images/pieno-hero.jpg") 50% 125% / cover no-repeat fixed;
}

/* watermark on hero to discourage raw saves */
.hero::after{
  content:"© Pieno.co.uk • licensed image";
  position:absolute;
  right:10px;
  bottom:10px;
  font-size:12px;
  line-height:1;
  padding:4px 8px;
  background:rgba(0,0,0,.30);
  color:#fff;
  border-radius:6px;
  pointer-events:none;
}

.brand-badge{
  display:inline-block;
  background:rgba(255,255,255,.9);
  border-radius:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  padding:10px 16px;
  margin-bottom:12px;
  color:#000;
}
.brand-logo{height:130px;display:block}

h1.hero-title{
  font-size:clamp(28px,4.8vw,58px);
  margin:8px 0 8px;
  letter-spacing:.4px;
}

.subtitle{
  font-size:clamp(15px,2.2vw,20px);
  opacity:.95;
  font-weight:600;
}

.cta{
  margin-top:22px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  transition:.18s;
  border: 2px solid var(--accent);
  background:rgba(255,255,255,.14);
  color:var(--accent);
  backdrop-filter:blur(2px);
}
.btn:hover{transform:translateY(-2px)}
.btn.primary{
  background:#E9FBF8;
  color:#064B49;
  border-color:#E9FBF8;
}
.btn.secondary{
  background:#fff;
  color:var(--accent);
  border:2px solid var(--accent);
}

/* ===== LAYOUT ===== */
.container{
  max-width:1200px;
  margin:24px auto 60px;
  padding:0 18px;
}
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:26px;
  margin-bottom:22px;
}
h2{
  color:var(--accent);
  margin:0 0 12px;
  font-size:clamp(22px,2.6vw,36px);
  letter-spacing:.6px;
}
h3{
  color:var(--accent-2);
  font-size:clamp(18px,2.2vw,26px);
  margin:0 0 10px;
  letter-spacing:.6px;
}

.grid{
  display:grid;
  gap:16px;
}
.grid.cols-2{grid-template-columns:repeat(2, minmax(0,1fr))}
.grid.cols-4{grid-template-columns:repeat(4, minmax(0,1fr))}
@media(max-width:900px){
  .grid.cols-2,
  .grid.cols-4{grid-template-columns:1fr}
}

/* ===== Feature list ===== */
.features{
  list-style:none;
  padding:0;
  margin:12px 0 0;
  display:grid;
  gap:14px;
}
.features li{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:12px;
  align-items:start;
  padding:14px 0;
  border-top:1px dashed var(--line);
}
.features li:first-child{border-top:none}

.ico{
  display:inline-grid;
  place-items:center;
  width:48px;
  height:48px;
  font-size:26px;
  border-radius:14px;
  background:#F0FBFA;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}
.features h3{margin:0}

/* ===== Price card ===== */
.price-panel{
  border:2px solid var(--accent);
  border-radius:20px;
  text-align:center;
  padding:20px;
  background:linear-gradient(#fff, #fff) padding-box,
             linear-gradient(135deg,#a9f0ea,#fff) border-box;
}
.price-badge{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  font-size:16px;
  margin-bottom:10px;
}
.price-big{
  font-size:44px;
  font-weight:800;
  color:var(--accent);
}
.fineprint{
  margin-top:8px;
  color:var(--muted);
}

table{width:100%;border-collapse:collapse}
th,td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
th{background:#F4FAF9}

.other-options{
  margin-top:10px;
  color:var(--muted);
}

/* ===== Footer ===== */
footer{
  padding:30px 0;
  color:var(--muted);
  text-align:center;
}

/* Print */
@media print{
  .hero,.btn,.cta,footer{display:none!important}
  body{background:#fff!important;color:#000}
  .container,.card,table{
    box-shadow:none!important;
    border:none!important;
    margin:0;
    padding:0;
    width:100%;
  }
  th,td{
    border:1px solid #ccc;
    padding:6px 8px;
  }
  th{background:#f5f5f5}
}

/* iOS friendly bg */
@supports (-webkit-touch-callout:none){
  .hero{background-attachment:scroll}
}

/* Stronger visual weight for headings */
h2 {
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 42px);
  letter-spacing: 0.4px;
  line-height: 1.25;
}

h3 {
  font-weight: 800;
  font-size: clamp(19px, 2.6vw, 28px);
  letter-spacing: 0.4px;
  line-height: 1.3;
}

h2, h3 {
  font-family: "Open Sans", sans-serif;
  font-variation-settings: "wght" 870;
}

/* Footer layout */
.site-footer{
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fafc);
  padding: 28px 0 40px;
  color: var(--muted);
  text-align: center;
}
.site-footer .footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.site-footer .footer-brand{
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 6px;
}
.site-footer .footer-tag{
  font-size: 0.95rem;
  color: #6b7a84;
  margin-bottom: 10px;
}
.site-footer .footer-sep{
  width: 120px;
  height: 1px;
  background: var(--line);
  border-radius: 999px;
  margin: 12px auto 14px;
}
.site-footer .footer-crafted{
  font-size: 0.95rem;
  color: #73838d;
  margin-bottom: 8px;
}
.site-footer .footer-legal{
  font-size: 0.9rem;
  line-height: 1.5;
  color: #8a99a3;
}
@media (min-height: 800px){
  .site-footer { box-shadow: 0 -12px 24px rgba(0,0,0,.04) inset; }
}

/* Make Offer button visibility */
.hero .cta .btn:nth-child(2){
  background: rgba(14,124,123,.92);
  color: #fff;
  border-color: rgba(255,255,255,.85);
  box-shadow:
    0 6px 18px rgba(0,0,0,.35),
    0 0 0 2px rgba(255,255,255,.28) inset;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.hero .cta .btn:nth-child(2):hover,
.hero .cta .btn:nth-child(2):focus-visible{
  transform: translateY(-2px) scale(1.02);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.hero .btn{
  backdrop-filter: blur(2px) saturate(1.1);
}

/* Hero subtitle as translucent pill */
.hero .subtitle{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: min(92vw, 980px);
  margin-top: 10px;
  background: rgba(30, 60, 90, 0.55);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(3px) saturate(1.05);
  backdrop-filter: blur(3px) saturate(1.05);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.5;
}
@media (max-width: 420px){
  .hero .subtitle{ padding: 8px 12px; border-radius: 12px; }
}

/* Hero title glass background */
.hero .hero-title{
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  max-width: min(94vw, 1200px);
  margin: 10px 0 6px;
  background: rgba(40, 90, 140, 0.45);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(3px) saturate(1.05);
  backdrop-filter: blur(3px) saturate(1.05);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  line-height: 1.15;
  letter-spacing: .4px;
}
@media (max-width: 480px){
  .hero .hero-title{ padding: 10px 12px; border-radius: 10px; }
}

/* iPhone fix — Domain Details table */
@media (max-width: 480px){
  .card table{
    table-layout: fixed;
    width: 100%;
  }
  .card table th:first-child,
  .card table td:first-child{
    width: 38%;
  }
  .card table th:last-child,
  .card table td:last-child{
    width: 62%;
  }
  .card table th,
  .card table td{
    padding: 12px 10px;
    vertical-align: top;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.45;
  }
  .card table th{ font-size: 1.05rem; }
  .card table td{ font-size: 1rem; }
}

/* Feature icons flat/minimal */
.features .ico{
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  background: var(--ico-bg, #f6f8fa);
  border: 1px solid var(--ico-stroke, #e8eef3);
  box-shadow: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, filter .16s ease;
}
.features .ico::after{ content:none; }

.features li:nth-child(1) .ico{ --ico-bg: rgba(14,124,123,.07); --ico-stroke: rgba(14,124,123,.22); }
.features li:nth-child(2) .ico{ --ico-bg: rgba(31,74,184,.07);  --ico-stroke: rgba(31,74,184,.22);  }
.features li:nth-child(3) .ico{ --ico-bg: rgba(194,65,12,.08);  --ico-stroke: rgba(194,65,12,.24);  }
.features li:nth-child(4) .ico{ --ico-bg: rgba(245,158,11,.10); --ico-stroke: rgba(245,158,11,.26); }

.features li:hover .ico,
.features li:focus-within .ico{
  transform: translateY(-1px);
  filter: saturate(1.02);
}

@media (prefers-color-scheme: dark){
  .features .ico{
    background: #111a21;
    border-color: #22303a;
  }
  .features li:nth-child(1) .ico{ --ico-bg: rgba(14,124,123,.18); --ico-stroke: rgba(14,124,123,.38); }
  .features li:nth-child(2) .ico{ --ico-bg: rgba(31,74,184,.18);  --ico-stroke: rgba(31,74,184,.38);  }
  .features li:nth-child(3) .ico{ --ico-bg: rgba(194,65,12,.20);  --ico-stroke: rgba(194,65,12,.40);  }
  .features li:nth-child(4) .ico{ --ico-bg: rgba(245,158,11,.22); --ico-stroke: rgba(245,158,11,.42); }
}

/* ========================= */
/* FESTIVE THEME ADDITIONS   */
/* (snow + lights + badge)   */
/* ========================= */

/* Snow overlay on hero */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(4px 4px at 20px 20px, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(4px 4px at 80px 40px, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(4px 4px at 40px 80px, rgba(255,255,255,0.8) 50%, transparent 51%);
  background-size: 120px 120px;
  opacity: 0.9;
  pointer-events: none;
  animation: snowFall 9s linear infinite;
  z-index: 1;
}

@keyframes snowFall{
  0%   { transform: translateY(-80px); }
  100% { transform: translateY(80px); }
}

/* Lights strip container */
.hero-lights{
  position:absolute;
  top: 10px;
  left:50%;
  transform:translateX(-50%);
  height:22px;
  width:260px;
  display:flex;
  justify-content:space-between;
  pointer-events:none;
  z-index:2;
}

.hero-lights .bulb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: red;
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
  animation: bulbShift 4s infinite ease-in-out,
             bulbColor 3s infinite ease-in-out;
}

.hero-lights .bulb:nth-child(1){animation-delay:0s;}
.hero-lights .bulb:nth-child(2){animation-delay:.2s;}
.hero-lights .bulb:nth-child(3){animation-delay:.4s;}
.hero-lights .bulb:nth-child(4){animation-delay:.6s;}
.hero-lights .bulb:nth-child(5){animation-delay:.8s;}
.hero-lights .bulb:nth-child(6){animation-delay:1s;}
.hero-lights .bulb:nth-child(7){animation-delay:1.2s;}
.hero-lights .bulb:nth-child(8){animation-delay:1.4s;}

@keyframes bulbShift{
  0%   { transform: translateX(0px); }
  33%  { transform: translateX(4px); }
  66%  { transform: translateX(-4px); }
  100% { transform: translateX(0px); }
}

@keyframes bulbColor{
  0%   { background: #008C45; }  /* green */
  20%  { background: #F4F5F0; }
  40%  { background: #CD212A; }  /* red */
  60%  { background: #00CCFF; }
  80%  { background: #FF66FF; }
  100% { background: #FFCC00; }
}

/* Festive badge under hero */
.hero-badge{
  position: relative;
  display: block;
  width: fit-content;
  max-width: 720px;
  margin: -36px auto 26px;
  padding: 10px 32px;
  text-align: center;
  background: linear-gradient(120deg, #0E7C7B, #0B5E5D, #D97706);
  color: #fff;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

@media (max-width: 600px){
  .hero-badge{
    width: 90%;
    max-width: 360px;
    margin: 12px auto 20px;
    padding: 8px 16px;
    font-size: 0.95rem;
    white-space: normal;
  }
}

/* Ultra-small screens (e.g. 240×320) */
@media (max-width: 320px) {

  /* Avoid horizontal scroll on very narrow devices */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Global typography: smaller base size */
  body {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Hero: keep image centered, no "fixed" bugs */
  .hero {
    background-attachment: scroll !important;
    background-position: center top !important;
    background-size: cover !important;

    min-height: 340px;
    padding: 26px 8px 30px;
  }

  .hero .hero-title {
    max-width: 95%;
    font-size: 1rem;
    padding: 8px 8px;
    margin: 6px auto 2px;
  }

  .hero .subtitle {
    max-width: 95%;
    font-size: 0.85rem;
    padding: 6px 8px;
    margin: 2px auto 0;
  }

/* Smaller logo inside the hero */
  .brand-logo {
    height: 90px;          /* was 130px */
  }

  /* Smaller festive lights strip */
  .hero-lights {
    width: 75%;            /* narrower row of lights */
    max-width: 200px;
    top: 4px;
  }

  .hero-lights .bulb {
    width: 12px;           /* was 18px */
    height: 12px;
    box-shadow: 0 0 6px rgba(255,255,255,0.7);
  }

  .cta {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .cta .btn {
    width: 90%;
    max-width: 220px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .hero-badge {
    width: 90%;
    max-width: 260px;
    margin: 10px auto 14px;
    padding: 6px 8px;
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
  }

  /* Main cards: tighter padding */
  .container {
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 8px 4px 24px;
  }

  .card {
    padding: 16px 8px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 0.9rem;
  }

  /* Feature list: compact icon + text */
  .features li {
    grid-template-columns: 36px 1fr;
    gap: 6px;
    padding: 8px 0;
  }

  .features .ico {
    width: 32px;
    height: 32px;
    font-size: 18px;
    border-radius: 9px;
  }

  /* Price panel: slightly smaller text */
  .price-panel {
    padding: 14px 8px 18px;
  }

  .price-big {
    font-size: 1.8rem;
  }

  .price-panel .fineprint,
  .other-options {
    font-size: 0.78rem;
  }

  /* Domain Details table: stack label and value instead of two tight columns */
  .card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px; /* small gap between rows */
  }

  .card table thead {
    display: none; /* hide header row on tiny screens */
  }

  .card table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 6px;
    background: #ffffff;
  }

  .card table th,
  .card table td {
    display: block;
    width: 100%;
    border: 0;
    padding: 2px 0;
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .card table th {
    font-weight: 700;
    background: transparent;
    color: var(--accent);
    margin-bottom: 2px;
  }

  .card table td {
    color: inherit;
  }

  /* Footer: shrink text a bit */
  .site-footer .footer-brand,
  .site-footer .footer-tag,
  .site-footer .footer-crafted,
  .site-footer .footer-legal {
    font-size: 0.72rem;
  }
}



