/* =====================================================================
   Dunot Developers: main stylesheet
   Used by every page: index.html, plan-website.html, plan-app.html,
   privacy.html and terms.html.

   HOW THIS FILE IS ORGANISED
   Each part of the site has its own section below. Inside a section the
   plain rules come first (they apply to every screen), then the changes for
   smaller screens, then hover and reduced-motion extras.

   SCREEN SIZES (the same four are used everywhere)
     up to 560px   small phones
     up to 699px   phones (600px to 699px also covers opened foldables)
     700 to 999px  tablets
     1000px and up desktops (1000px to 1180px: small laptops)
   The menu button and the swipeable project cards also switch at 1000px
   in assets/js/main.js. If you change a screen size here, change it there.

   UNITS
     font sizes   rem (1rem = 16px), so text grows if a visitor sets a
                  larger default font size in their browser
     spacing      px (padding, margins, gaps)
     borders, shadows, rounded corners, icons: px

   CONTENTS
      1. Colours, sizes and fonts (change the look of the whole site here)
      2. Base: page defaults, links, headings, layout container
      3. Buttons
      4. Header: logo, menu, mobile menu
      5. Section helpers: section spacing, headings, small labels
      6. Hero: the first screen of the home page
      7. Services
      8. Our Work: project cards, phone swipe row, large screenshot viewer
      9. How We Work
     10. About
     11. Contact
     12. Forms: fields, dropdowns, errors
     13. Footer
     14. Floating extras: reading bar, Viber note
     15. Planner pages: steps, fields and bottom buttons
     16. Planner pages: tap-to-choose cards and pills
     17. Planner pages: side column
     18. Planner pages: top of the page and "Prefer to Talk?" card
     19. Planner pages: slim footer
     20. Planner pages: "See my plan" popup
     21. Privacy and Terms pages
   ===================================================================== */

/* =====================================================================
   1. Colours, sizes and fonts
   Change the look of the whole site here. Every colour, corner radius and
   heading size below is used in many places.
   To change the brand brown: --accent. Hover brown: --accent-dark.
   To change all section heading sizes: --text-h2.
   To change all card title sizes: --text-card-title.
   To change the page width: --container. Side padding: --gutter.
   To change the space between home page sections: --space-section.
   ===================================================================== */

:root {
  --accent: #5a1408; /* Dunot brown: buttons, links, highlights */
  --accent-dark: #74240f; /* brown on hover */
  --accent-soft: #f7e7d4; /* cream: active menu item, labels */
  --tan: #c4925e; /* small accents: label dots, footer icons */
  --ink: #18130f; /* headings */
  --text: #27211d; /* body text */
  --muted: #45403b; /* secondary text */
  --soft: #f4f4f4; /* card and panel background */
  --line: #ddd4c9; /* outlines */
  --line-light: #ede7e0; /* light borders */
  --field: #78716c; /* form field border */
  --bg: #fdfdfc;
  --white: #ffffff;
  --error: #b3261e;
  --footer-bg: #0a0a0a;
  --radius-sm: 12px;
  --radius: 24px;
  --radius-lg: 32px;
  --pill: 999px;
  --shadow: 0 12px 28px -10px rgba(90, 20, 8, 0.12);
  --container: 1280px; /* widest the page content gets */
  --gutter: 28px; /* space at the left and right edges of the page */
  --header-h: 93px; /* sticky header height, used to fit the hero on one screen */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* Inter, loaded in the <head> of each page */
  --text-h2: clamp(1.75rem, 2.9vw, 2.625rem); /* section headings (H2); smaller values for tablets and phones below */
  --text-card-title: 1.25rem; /* card titles in Services, Our Work and How We Work */
  --space-section: 104px; /* space under each home page section */
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  :root {
    --header-h: 85px;
    --text-h2: clamp(1.75rem, 4.6vw, 2.25rem);
    --text-card-title: 1.125rem;
    --space-section: 72px;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  :root {
    --text-h2: 1.75rem;
    --text-card-title: 1.0625rem;
  }
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }
}

/* =====================================================================
   2. Base: page defaults, links, headings, layout container
   To change the body text size: "body" below (17px desktop, 16px phones).
   ===================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--ink);
}
a:hover {
  color: var(--accent);
}
/* text links inside the page: thin warm underline that turns brown */
main a:not(.btn):not(.logo) {
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
main a:not(.btn):not(.logo):hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
h1,
h2 {
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
h3 {
  margin: 0;
  line-height: 1.1;
}
p {
  margin: 0;
  text-wrap: pretty;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}
/* sections fade up as they scroll into view (main.js adds .is-visible) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
li,
blockquote {
  text-wrap: pretty;
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  main a {
    text-decoration: none;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  body {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* =====================================================================
   3. Buttons
   .btn is the shape; add one colour class: --dark (brown), --light (white
   with an outline), --outline, --soft (cream). --block makes it full width.
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--dark,
.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--dark:hover,
.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--white);
}
.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover {
  color: var(--accent);
}
.btn--outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--soft {
  background: var(--soft);
}
.btn--soft:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .btn {
    font-size: 1rem;
  }
}

@media (hover: hover) {
  .btn {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -10px rgba(24, 19, 15, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* =====================================================================
   4. Header: logo, menu, mobile menu
   To change the logo size: ".logo img.logo__full" (72px desktop, 64px
   tablets, 60px phones). Header height is --header-h in section 1.
   Below 1000px the menu links hide behind the menu button (.nav-toggle).
   ===================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-light);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo img {
  width: 40px;
  height: 40px;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}
.nav__links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--pill);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  font-size: 1rem;
}
.nav__links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav__links a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav__links a:active {
  transform: scale(0.96);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: inline;
}
.header-quote {
  display: none;
}
/* the page behind the open mobile menu: lightly frosted */
.nav-shade {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  background: rgba(253, 253, 252, 0.9);
}
html.menu-open {
  overflow: hidden;
}
html.menu-open .site-header {
  background: var(--bg);
}
.logo img.logo__full {
  width: auto;
  height: 72px;
  margin: -10px 0;
}

/* Small laptops and smaller: up to 1180px */
@media (max-width: 1180px) {
  .nav {
    gap: 20px;
  }
  .nav__links a {
    padding: 8px 12px;
  }
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .site-header__inner {
    gap: 10px;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-light);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    display: none;
    padding: 12px var(--gutter) 22px;
    z-index: 45;
    box-shadow: 0 30px 40px -30px rgba(24, 19, 15, 0.35);
  }
  .nav__links {
    flex-direction: column;
  }
  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 1.0625rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav.is-open {
    display: flex;
  }
  .header-quote {
    display: inline-flex;
  }
  .nav .btn {
    min-height: 50px;
  }
  .logo img.logo__full {
    height: 64px;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .site-header__inner {
    gap: 16px;
  }
  .header-quote {
    display: none;
  }
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  .logo {
    font-size: 1.1875rem;
    gap: 8px;
  }
  .logo img {
    width: 34px;
    height: 34px;
  }
  .logo img.logo__full {
    height: 60px;
  }
}

/* Tablets only: 700px to 999px */
@media (min-width: 700px) and (max-width: 999px) {
  .header-quote {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.9375rem;
    margin-left: auto;
    margin-right: 24px;
  }
  .nav .btn {
    display: none;
  }
}

@media (hover: hover) {
  /* while the pointer is on the menu, only the link under it is highlighted */
  .nav:hover .nav__links a.is-active:not(:hover) {
    background: transparent;
    color: var(--ink);
    transition: none;
  }
}

@supports ( (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px)) ) {
  .nav-shade {
    background: rgba(253, 253, 252, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__links a {
    transition: none;
  }
}

/* =====================================================================
   5. Section helpers: section spacing, headings, small labels
   To change the space between sections: --space-section in section 1.
   To change all section heading sizes: --text-h2 in section 1.
   .tag is the small rounded label above a heading ("What We Do").
   ===================================================================== */

.section {
  padding-top: 0;
  padding-bottom: var(--space-section);
}
.section--flush-top {
  padding-top: 0;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.section-lead {
  margin: 10px auto 0;
  color: var(--muted);
  text-wrap: balance;
  letter-spacing: -0.01em;
  line-height: 1.55;
  margin-top: 14px;
  max-width: 62ch;
  font-size: 1.1875rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: var(--pill);
  padding: 6px 16px;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.875rem;
}
.tag::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tan);
}
.section-head .tag {
  margin-bottom: 16px;
}
#services.section {
  padding-top: 96px;
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .section-head {
    margin-bottom: 32px;
  }
  .section-lead {
    font-size: 1.0625rem;
  }
  #services.section {
    padding-top: 56px;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .section-title {
    letter-spacing: -0.03em;
  }
  .tag {
    font-size: 0.8125rem;
  }
}

/* =====================================================================
   6. Hero: the first screen of the home page
   Text and buttons on the left, one picture on the right: a made-up shop
   website (.hv-browser) with a made-up food app (.hv-phone) overlapping it
   and a small "Order confirmed" note (.hv-toast).
   To change the headline size: ".hero__title".
   Desktop: the hero fills the screen height (but stops at 780px).
   ===================================================================== */

.hero-screen {
  min-height: calc(100vh - var(--header-h)); /* for older browsers; the svh line below wins in newer ones */
  min-height: calc(100svh - var(--header-h));
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 6.4vh, 64px);
  padding-top: clamp(14px, 2.4vh, 36px);
  padding-bottom: clamp(18px, 3vh, 44px);
  display: grid;
}
.hero {
  text-align: left;
}
.hero .tag {
  margin-bottom: clamp(14px, 2.4vh, 24px);
}
.hero__title {
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(2.75rem, min(4.2vw, 7.4vh), 4rem);
  line-height: 1.07;
}
.hero__lead {
  margin: clamp(14px, 2.4vh, 22px) auto 0;
  font-size: clamp(1.0625rem, 2.4vh, 1.1875rem);
  color: var(--muted);
  max-width: none;
  text-wrap: pretty;
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.shot-browser {
  position: absolute;
  top: 2px;
  left: 0;
  width: max(100%, 380px);
  overflow: hidden;
  border-radius: 12px 0 0 0;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(24, 19, 15, 0.08), 0 18px 40px -18px rgba(24, 19, 15, 0.35);
}
.shot-browser__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 10px;
  background: #f1eeea;
  border-bottom: 1px solid #e4dfd8;
}
.shot-browser__dots {
  display: flex;
  gap: 5px;
}
.shot-browser__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d3cb;
}
.shot-browser__url {
  flex: 0 1 200px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.65625rem;
}
.shot-browser img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-phone {
  position: absolute;
  top: 4px;
  left: 58%;
  width: clamp(150px, 48%, 200px);
  padding: 6px;
  border-radius: 30px;
  background: #18130f;
  transform: translateX(-50%);
  box-shadow: 0 18px 40px -16px rgba(24, 19, 15, 0.45);
}
.shot-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.shot-toast {
  position: absolute;
  top: 34%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 24px -10px rgba(24, 19, 15, 0.35);
  color: var(--muted);
  font-size: 0.71875rem;
  line-height: 1.35;
  white-space: nowrap;
}
.shot-toast b {
  display: block;
  color: var(--ink);
  font-size: 0.75rem;
}
.shot-toast__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7f4ea;
  color: #15803d;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.6vh, 36px);
  justify-content: flex-start;
}
.hero-btns .btn--light {
  border-color: var(--line);
}
.hero-btns .btn--light:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-visual {
  position: relative;
  margin: 0 auto;
  padding: clamp(20px, 3.4vh, 32px) 0 clamp(20px, 3.4vh, 32px) clamp(20px, 2.4vw, 32px);
  max-width: none;
  width: calc(100% + var(--bleed));
}
/* soft cream shape behind the picture */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 0 10%;
  border-radius: 32px;
  background: var(--accent-soft);
  opacity: 0.7;
}
.hv-browser {
  position: relative;
  width: 82%;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(24, 19, 15, 0.06), 0 20px 40px -24px rgba(24, 19, 15, 0.35);
}
.hv-browser img {
  object-fit: cover;
  object-position: top left;
  height: auto;
}
/* the phone: sized from the picture height so it never rises above it */
.hv-phone {
  left: auto;
  right: 3%;
  bottom: clamp(10px, 1.6vh, 16px);
  transform: none;
  padding: 5px;
  border-radius: 26px;
  box-shadow: 0 20px 40px -18px rgba(24, 19, 15, 0.45);
  top: 10%;
  width: auto;
  max-width: 30%;
  aspect-ratio: 595 / 1276;
}
.hv-phone img {
  border-radius: 21px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.hv-toast {
  top: auto;
  left: 46%;
  bottom: 22%;
  transform: translateX(-50%);
}

/* Desktops: 1000px and wider */
@media (min-width: 1000px) {
  .hero-screen {
    align-items: center;
    align-content: center;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    --hero-h1: clamp(44px, min(4.2vw, 7.4vh), 64px);
    grid-template-columns: minmax(0, calc(var(--hero-h1) * 10.5)) minmax(0, 1fr);
    column-gap: clamp(28px, 2.6vw, 40px);
  }
  .hero__lead {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-visual {
    --bleed: clamp(0px, calc((100vw - 1280px) / 2 + 16px), 72px);
    margin-right: calc(-1 * var(--bleed));
  }
  .hv-browser img {
    aspect-ratio: 1280 / 800;
  }
  .hero-screen > .container {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .hero-screen {
    display: flex;
    min-height: 0;
    gap: 30px;
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .hero {
    text-align: center;
  }
  .hero__title {
    font-size: 3.125rem;
  }
  .hero__lead {
    max-width: 920px;
    text-wrap: balance;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-visual {
    width: calc(100% - 2 * var(--gutter));
    display: block;
    max-width: 600px;
  }
  .hv-browser img {
    height: clamp(200px, 34vh, 330px);
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .hero {
    text-align: left;
  }
  .hero__title {
    text-wrap: pretty;
    font-size: clamp(1.875rem, 9vw, 2.125rem);
    line-height: 1.12;
  }
  .hero__lead {
    margin-left: 0;
    font-size: 1rem;
  }
  .hero-btns {
    display: grid;
    justify-content: stretch;
  }
  .hero-visual {
    max-width: 640px;
    padding: 18px 0 18px 18px;
  }
  .hv-browser img {
    height: 178px;
  }
  .hero-btns .btn {
    width: 100%;
  }
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  .hero .tag {
    margin-bottom: 12px;
  }
  .hero__lead {
    margin-top: 12px;
  }
  .hero-btns .btn {
    flex: 1 1 100%;
  }
}

/* Large phones and foldables: 600px to 699px */
@media (min-width: 600px) and (max-width: 699px) {
  .hero-btns {
    max-width: 420px;
  }
}

@media (orientation: landscape) and (min-width: 1000px) {
  .hero-screen {
    min-height: min(calc(100svh - var(--header-h)), 780px);
  }
}

@media (orientation: portrait) and (min-width: 1000px) {
  .hero-screen {
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 80px;
  }
}

/* =====================================================================
   7. Services
   Six cards; each whole card links to a planner page.
   Desktop: 3 x 2 grid. Tablets: 2 columns. Phones: one column list.
   Cards 2, 4 and 6 have a moving rainbow outline (spin-border); it only
   runs while the section is on screen (main.js adds .is-live).
   ===================================================================== */

/* ---------- Services ----------
   Cards 1, 3 and 5: a thin rainbow border that keeps running round the card.
   Cards 2 and 4: a short rainbow light travelling round a thin outline, the other way.
   The card colour and border are drawn by ::after, the glow by ::before. */
@property --spin {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes spin-border {
  to {
    --spin: 360deg;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service {
  --fill: var(--soft);
  --line-base: var(--line);
  --rainbow: #f87171, #fb923c, #facc15, #4ade80, #38bdf8, #818cf8, #c084fc, #f87171;
  position: relative;
  isolation: isolate;
  padding: 32px 26px;
  border-radius: var(--radius);
  animation: spin-border 6s linear infinite reverse;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}
/* card colour and rainbow border */
.service::before {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  inset: 10px;
  z-index: -2;
  background: conic-gradient(from var(--spin), var(--rainbow));
  filter: blur(18px);
  opacity: 0.16;
}
.service::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  inset: 0;
  z-index: -1;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--fill), var(--fill)) padding-box, conic-gradient(from var(--spin), var(--rainbow)) border-box;
}
.service:nth-child(even) {
  animation-duration: 4s;
  animation-direction: normal;
}
.service:nth-child(even)::after {
  background: linear-gradient(var(--fill), var(--fill)) padding-box, conic-gradient( from var(--spin), transparent 0turn 0.6turn, #f87171 0.7turn, #fb923c 0.76turn, #facc15 0.82turn, #4ade80 0.87turn, #38bdf8 0.92turn, #818cf8 0.96turn, #c084fc 0.995turn, transparent 1turn ) border-box, linear-gradient(var(--line-base), var(--line-base)) border-box;
}
/* cards 2, 4 and 6: a short rainbow light running round a thin outline */
.service:nth-child(even)::before {
  display: none;
}
.js .service {
  animation-play-state: paused;
}
.js .services-grid.is-live .service {
  animation-play-state: running;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service svg {
  margin: 0;
}
.service h3 {
  font-size: var(--text-card-title);
  margin: 16px 0 10px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.service p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
/* the short one-line description shown on tablets and phones */
.service__short {
  display: none;
}
.service__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.service__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.service__arrow,
.services-more {
  display: none;
}
.service .service__short {
  font-size: 1rem;
  line-height: 1.5;
}
.service p:not(.service__short) {
  font-size: 1rem;
  line-height: 1.6;
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .service {
    display: grid;
    grid-template-areas: "ico title go" "ico short go";
    align-items: center;
    row-gap: 2px;
    border-radius: 18px;
    animation: none;
    padding: 20px 20px 20px 18px;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    column-gap: 16px;
  }
  .service::before {
    display: none;
  }
  .service::after,
  .service:nth-child(even)::after {
    background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
    border-width: 1px;
  }
  .service:hover {
    transform: none;
    box-shadow: none;
  }
  .service h3 {
    grid-area: title;
    margin: 0;
  }
  .service p {
    display: none;
  }
  .service__link {
    display: grid;
  }
  .service__arrow {
    display: block;
    grid-area: go;
    color: var(--muted);
  }
  .services-more {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 28px;
    text-align: center;
  }
  .service > svg {
    grid-area: ico;
    padding: 12px;
    border-radius: 50%;
    background: var(--soft);
    width: 48px;
    height: 60px;
  }
  .service .service__short {
    display: block;
    grid-area: short;
    color: var(--muted);
  }
  .service__link .service__arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -10px;
  }
  .services-more p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
  }
  .services-grid .service .service__short {
    line-height: 1.5;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .service {
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    column-gap: 14px;
    padding: 15px 16px 15px 14px;
  }
  .service > svg {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service {
    transition: none;
    animation: none;
  }
  .service:hover {
    transform: none;
  }
}

/* =====================================================================
   8. Our Work: project cards, phone swipe row, large screenshot viewer
   Desktop: 3 cards in a row. Below 1000px main.js adds .is-cf and the
   cards become a swipe row with dots (.cf-dots).
   Clicking a screenshot opens the large viewer (.lightbox), built by main.js.
   The label on each card ("Client") is .work-card__label.
   ===================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.work-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.work-card__img {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}
.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.88;
  flex: 1;
  min-height: 0;
  transition: opacity 0.25s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .work-card__img img {
  opacity: 1;
}
.work-card__body {
  padding: 14px 12px 12px;
}
.work-card__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.work-card__label--client {
  background: var(--white);
  color: var(--muted);
}
.work-card h3 {
  font-size: var(--text-card-title);
  margin: 0 0 4px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.work-card p {
  color: var(--muted);
}
.cf-dots button {
  width: 24px;
  height: 44px;
}
.work-card__body p {
  font-size: 1rem;
  line-height: 1.6;
}
/* each screenshot sits in a small browser window with the site address */
.work-card__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  width: 100%;
  height: 26px;
  padding: 0 10px;
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
}
.work-card__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.work-card__bar span {
  margin-left: 8px;
  font-size: 0.71875rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card.is-zoomable {
  cursor: zoom-in;
}
/* small "expand" icon on screenshots that open in the large viewer */
.work-card.is-zoomable .work-card__img::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318130F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 2px 8px rgba(24, 19, 15, 0.25);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.work-card.is-zoomable:hover .work-card__img::after,
.work-card.is-zoomable:focus-visible .work-card__img::after {
  opacity: 1;
  transform: none;
}
.work-grid.is-cf .work-card:not([data-pos="center"]) .work-card__img::after {
  opacity: 0;
}
html.lightbox-open {
  overflow: hidden;
}
/* large screenshot viewer */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox__figure {
  margin: 0;
  width: min(1240px, calc(100vw - 180px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  border-radius: 16px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.lightbox__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  color: #fff;
  text-align: center;
}
.lightbox__cap b {
  font-size: 1.125rem;
}
.lightbox__cap span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}
.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__btn:hover {
  background: #fff;
  transform: scale(1.06);
}
.lightbox__btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}
.lightbox__close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
}
.work-card--app .work-card__bar i {
  visibility: hidden;
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* swipe row (tablets and phones): the centre card in front, side cards faded */
  .work-grid.is-cf {
    display: block;
    position: relative;
    height: var(--cf-h, 360px);
    margin: 0 calc(-1 * var(--gutter));
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
  .work-grid.is-cf .work-card {
    --d: 0;
    --s: 1;
    position: absolute;
    left: 50%;
    top: 10px;
    height: var(--cf-card-h, auto);
    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.45s ease, filter 0.45s ease;
    cursor: grab;
    width: 44%;
    transform: translateX(calc(-50% + var(--d) * 72% + var(--drag, 0px))) scale(var(--s));
  }
  .work-grid.is-cf.is-dragging .work-card {
    transition: none;
    cursor: grabbing;
  }
  .work-grid.is-cf .work-card[data-pos="center"] {
    z-index: 3;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line-light), 0 24px 40px -26px rgba(24, 19, 15, 0.5);
  }
  .work-grid.is-cf .work-card[data-pos="side"] {
    z-index: 2;
    --s: 0.86;
    opacity: 0.55;
    filter: saturate(0.6);
    cursor: pointer;
  }
  .work-grid.is-cf .work-card[data-pos="away"] {
    z-index: 1;
    --s: 0.72;
    opacity: 0;
    pointer-events: none;
  }
  .work-grid.is-cf .work-card:hover {
    transform: translateX(calc(-50% + var(--d) * 72% + var(--drag, 0px))) scale(var(--s));
  }
  .cf-dots {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
  .cf-dots button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
  }
  .cf-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
    transition: background-color 0.3s ease;
  }
  .cf-dots button[aria-current="true"] span {
    background: var(--accent);
  }
  .cf-dots button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -4px;
    border-radius: 50%;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .work-grid.is-cf .work-card {
    width: 72%;
    transform: translateX(calc(-50% + var(--d) * 66% + var(--drag, 0px))) scale(var(--s));
  }
  .work-grid.is-cf .work-card:hover {
    transform: translateX(calc(-50% + var(--d) * 66% + var(--drag, 0px))) scale(var(--s));
  }
  .lightbox__figure {
    width: calc(100vw - 32px);
  }
  .lightbox__img {
    max-height: calc(100dvh - 240px);
    border-radius: 12px;
  }
  .lightbox__close {
    top: 14px;
    right: 14px;
  }
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) {
  .work-card:hover .work-card__img img {
    transform: scale(1.03);
  }
}

@media (hover: none) {
  .work-card.is-zoomable .work-card__img::after {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card {
    transition: none;
  }
  .work-card:hover {
    transform: none;
  }
  .work-card__img img {
    transition: none;
  }
  .work-card:hover .work-card__img img {
    transform: none;
  }
  .work-grid.is-cf .work-card,
  .cf-dots span,
  .work-card.is-zoomable .work-card__img::after,
  .lightbox__btn {
    transition: none;
  }
}

/* =====================================================================
   9. How We Work
   Three numbered steps. The number rings fill in one after another when the
   section scrolls into view (main.js adds .is-visible). The numbers have no
   hover effect. To change their colours: .hw-num.
   Desktop: three cards. Tablets: three columns joined by a line.
   Phones: stacked steps joined by a vertical line.
   ===================================================================== */

.hw {
  text-align: center;
}
.hw-title {
  font-size: var(--text-h2);
  margin: 16px auto 48px;
  max-width: 820px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.hw-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hw-card {
  padding: 28px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid transparent;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.hw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(24, 19, 15, 0.18);
  border-color: var(--line-light);
}
.hw-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #d3b294; /* step number ring: a dimmed tan */
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: #a87a56; /* step number: a dimmed brown */
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
/* numbers start as outlines and fill in one after another */
.js .hw-num {
  border-color: var(--line);
  background: var(--bg);
}
.js .hw.is-visible .hw-num {
  border-color: #d3b294;
  background: var(--accent-soft);
}
.js .hw.is-visible .hw-card:nth-child(2) .hw-num {
  transition-delay: 0.6s;
}
.js .hw.is-visible .hw-card:nth-child(3) .hw-num {
  transition-delay: 1.2s;
}
.hw-card h3 {
  font-size: var(--text-card-title);
  margin-bottom: 8px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.hw-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .hw-grid {
    gap: 20px;
  }
  .hw-card {
    position: relative;
    display: block;
    background: none;
    padding: 0;
    border: 0;
    text-align: center;
  }
  .hw-card:hover {
    transform: none;
    box-shadow: none;
  }
  .hw-num {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    font-size: 0.9375rem;
    border-width: 1px;
  }
  .hw-card h3 {
    margin-bottom: 6px;
  }
  /* the thin line joining the steps */
  .hw-card::before {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(50% + 34px);
    background: var(--line);
  }
  .hw-card:last-child::before {
    display: none;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .hw-title {
    letter-spacing: -0.03em;
  }
  .hw-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hw-card {
    display: grid;
    column-gap: 16px;
    text-align: left;
    padding: 0 0 26px;
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .hw-num {
    margin: 0;
  }
  .hw-card h3 {
    margin-bottom: 4px;
  }
  .hw-card:last-child {
    padding-bottom: 0;
  }
  .hw-card::before {
    left: 23.5px;
    top: 52px;
    bottom: 4px;
    width: 1px;
  }
  .hw-card > div {
    padding-top: 10px;
  }
}

/* Tablets only: 700px to 999px */
@media (min-width: 700px) and (max-width: 999px) {
  .hw-card::before {
    right: calc(-50% + 14px);
    height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-card {
    transition: none;
  }
  .hw-card:hover {
    transform: none;
  }
  .hw-num {
    transition: none;
  }
}

/* =====================================================================
   10. About
   Text on the left, four number cards (.stats) on the right.
   The text paragraphs are justified (spread to both edges) on tablets and
   desktops, and left-aligned on phones.
   Phones: the number cards move under the text.
   ===================================================================== */

.about {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 72px;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.about__text {
  flex: 1 1 0;
  min-width: 0;
}
.about .tag {
  background: var(--bg);
}
.about h2 {
  margin: 16px 0 24px;
  font-weight: 700;
}
.about p {
  margin-bottom: 14px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}
.about .btn-row {
  margin-top: 32px;
}
.stats {
  flex: 0 0 440px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat {
  padding: 26px 28px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background: var(--bg);
}
/* card values shrink with the card so words like "All-in-One" stay on one line */
.stat {
  container-type: inline-size;
}
.stat strong {
  display: block;
  white-space: nowrap;
  font-size: min(2.75rem, 19cqi);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
/* "All-in-One": normal-width hyphens */
.stat strong.stat__word {
  font-variant-numeric: normal;
}
.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.about__text h2 {
  font-size: var(--text-h2);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.about .about__text p {
  line-height: 1.6;
}
.about__text > p {
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.about__text p {
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: justify;
}

/* Small laptops and smaller: up to 1180px */
@media (max-width: 1180px) {
  .about {
    padding: 48px;
    gap: 40px;
  }
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .about {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 40px 36px;
  }
  .stats {
    flex: none;
    width: 100%;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .about {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 18px;
    gap: 28px;
    border-radius: var(--radius);
  }
  .about p {
    font-size: 1.0625rem;
  }
  .stats {
    flex: none;
    width: 100%;
    gap: 12px;
  }
  .stat {
    padding: 18px 16px;
  }
  .stat strong {
    font-size: min(1.75rem, 19cqi);
  }
  .stat span {
    font-size: 0.875rem;
  }
  .about .btn-row .btn {
    width: 100%;
  }
  .about__text h2 {
    letter-spacing: -0.03em;
  }
  .about .about__text p,
  .about__text p {
    font-size: 1rem;
    text-align: left; /* short phone lines leave wide gaps when justified */
  }
}

/* Small laptops only: 1000px to 1180px */
@media (min-width: 1000px) and (max-width: 1180px) {
  .stats {
    flex-basis: 400px;
  }
}

/* =====================================================================
   11. Contact
   Desktop: heading and contact list on the left, form on the right.
   Phones: heading, form, then the contact list.
   The WhatsApp pill at the end of the list opens a chat (.contact__wa).
   The form fields themselves are styled in section 12.
   ===================================================================== */

.contact {
  background: var(--soft);
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px 64px;
  padding-top: 96px;
  padding-bottom: 96px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "info form" "details form";
}
.contact__info {
  grid-area: info;
}
.contact__info h2 {
  font-size: var(--text-h2);
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.contact__info > p {
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.contact__details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.0625rem;
  grid-area: details;
  display: grid;
  align-content: start;
  gap: 2px;
  line-height: 1.5;
}
.contact__details li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.contact .form-card {
  grid-area: form;
}
.contact__details a,
.contact__plain {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  color: var(--text);
  text-decoration: none;
}
.contact__details a:hover {
  color: var(--accent);
}
.contact__details svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}
.contact .contact__info h2 {
  line-height: 1.1;
}
.contact .contact__info > p {
  line-height: 1.6;
}
/* the phone link turns blue on hover */
.contact__details a[href^="tel:"]:hover {
  color: #2563eb;
}
/* WhatsApp: small outlined pill with the logo and number; opens a chat */
.contact__details .contact__wa {
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s ease;
}
.contact__details .contact__wa svg {
  margin-top: 0;
  color: #25d366;
}
.contact__wa-label {
  color: var(--muted);
}
.contact__details a.contact__wa:hover {
  border-color: #25d366;
  color: var(--ink);
}
/* the phone link turns blue on hover */
.contact__details a[href^="tel:"]:hover {
  color: #2563eb;
}

/* Desktops: 1000px and wider */
@media (min-width: 1000px) {
  .contact__info > p {
    margin-bottom: 0;
  }
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .contact__inner {
    gap: 22px;
    padding-top: 64px;
    padding-bottom: 64px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-areas: "info info" "details form";
  }
  .contact__info {
    text-align: center;
  }
  .contact__info h2 {
    margin-bottom: 10px;
  }
  .contact__info > p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 34ch;
    margin: 0 auto;
  }
  .contact__details {
    font-size: 1rem;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "info" "form" "details";
  }
  .contact__info h2 {
    letter-spacing: -0.03em;
  }
  .contact .contact__info > p {
    font-size: 1rem;
  }
}

/* Tablets only: 700px to 999px */
@media (min-width: 700px) and (max-width: 999px) {
  .contact__inner {
    column-gap: 24px;
    row-gap: 18px;
  }
}

/* =====================================================================
   12. Forms: fields, dropdowns, errors
   Used by the contact form and the planner pages.
   To change field borders: .input. Error colour: --error in section 1.
   The red star on required labels is .req.
   ===================================================================== */

.form-card {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 0.875rem;
}
.input {
  width: 100%;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.input {
  resize: none;
  line-height: 1.5;
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 46px;
  cursor: pointer;
}
.select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -9px;
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.2s ease;
}
/* error under a field */
.field-error {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--error);
}
.field-error:empty {
  display: none;
}
.input[aria-invalid="true"],
.input[aria-invalid="true"]:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}
.form-status {
  display: none;
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
}
.form-status.is-success {
  display: block;
  background: #e7f4ea;
  color: #14532d;
}
.form-status.is-error {
  display: block;
  background: #fdecea;
  color: var(--error);
}
/* "Choose one" shows in grey until an option is picked */
select.input:invalid {
  color: var(--field);
}
select.input option {
  color: var(--text);
}
/* red star after required labels */
.req {
  margin-left: 2px;
  font-weight: 600;
  color: var(--error);
}

@supports (appearance: base-select) {
  .select-wrap select {
    appearance: base-select;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* newer Chrome and Edge: the open dropdown list in the site style */
  .select-wrap select::picker(select) {
    appearance: base-select;
    margin: 6px 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: 0 14px 32px -12px rgba(24, 19, 15, 0.22);
  }
  .select-wrap select::picker-icon {
    display: none;
  }
  .select-wrap option {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
  }
  .select-wrap option::checkmark {
    display: none;
  }
  .select-wrap option:hover,
  .select-wrap option:focus-visible {
    background: var(--accent-soft);
    color: var(--accent);
    outline: none;
  }
  .select-wrap option:checked {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
  }
}

@supports selector(:open) {
  .select-wrap select:open {
    border-color: var(--accent);
  }
  .select-wrap:has(select:open) .select-chevron {
    transform: rotate(180deg);
  }
}

/* =====================================================================
   13. Footer
   Dark footer: company and contact details, Quick Links, Services.
   Tablets: three columns. Phones: one column.
   ===================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: #c5c0ba;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 64px;
}
.site-footer a {
  color: #c5c0ba;
  text-decoration: none;
}
.site-footer .logo,
.site-footer .logo:hover {
  color: var(--white);
}
.footer-contact {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.5;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-contact svg {
  flex: none;
  margin-top: 3px;
  color: var(--tan);
}
.footer-title {
  margin: 8px 0 22px;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  font-size: 1rem;
}
.footer-links a,
.footer-contact a,
.footer-bottom__links a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.25s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #f3e3cf;
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-bottom__links a:hover,
.footer-bottom__links a:focus-visible {
  transform: translateX(4px);
}
.site-footer :focus-visible {
  outline-color: #f3e3cf;
}
.footer-bottom {
  position: relative;
  border-top: 1px solid #2a2622;
}
/* the bottom line: copyright and Privacy / Terms links */
.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 0.875rem;
  color: #a39b93;
}
.footer-bottom__links {
  display: flex;
  gap: 22px;
}
.site-footer .footer-bottom__links a {
  color: #a39b93;
}
.site-footer .footer-bottom__links a:hover {
  color: #f3e3cf;
}
/* back-to-top button on the footer divider line */
.to-top {
  position: absolute;
  top: -27px;
  left: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--footer-bg);
  transition: background-color 0.2s ease;
}
.site-footer .to-top,
.site-footer .to-top:hover {
  color: #f3e3cf;
}
.to-top:hover {
  background: var(--accent-dark);
}
.footer-tagline {
  display: none;
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding-top: 56px;
  }
  .footer-contact {
    font-size: 0.9375rem;
    margin-top: 8px;
  }
  .footer-title {
    margin: 0 0 12px;
  }
  .footer-links {
    font-size: 0.9375rem;
  }
  .footer-company {
    grid-column: auto;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 52px;
    padding-bottom: 40px;
  }
  .footer-contact {
    font-size: 1rem;
    order: 5;
    margin-top: 0;
    padding-top: 22px;
    border-top: 1px solid #262220;
  }
  .footer-title {
    margin: 0 0 14px;
  }
  .footer-links {
    font-size: 1rem;
    gap: 2px;
  }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 0.9375rem;
  }
  .footer-bottom__inner {
    flex-direction: column;
  }
  .footer-company {
    grid-column: 1 / -1;
    display: contents;
  }
  .footer-tagline {
    display: block;
    order: 2;
    margin: -12px 0 0;
    max-width: 34ch;
    line-height: 1.6;
    font-size: 0.9375rem;
  }
  .footer-company .logo {
    order: 1;
  }
  .footer-grid > nav {
    order: 3;
  }
  .footer-grid > div:not(.footer-company) {
    order: 4;
  }
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  .footer-bottom__inner {
    padding-top: 34px;
  }
}

/* Tablets only: 700px to 999px */
@media (min-width: 700px) and (max-width: 999px) {
  .footer-title {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .footer-company .logo {
    min-height: 40px;
    margin-bottom: 12px;
    font-size: 1.125rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* =====================================================================
   14. Floating extras: reading bar, Viber note
   Reading bar (.scroll-progress): thin brown line at the top of the page.
   Viber note: shown by main.js when the Viber app may not have opened.
   ===================================================================== */

/* reading bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 60;
  pointer-events: none;
}
/* "Viber didn't open?" note */
.viber-note {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(560px, calc(100% - 32px));
  padding: 14px 14px 14px 18px;
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(24, 19, 15, 0.45);
  transform: translateX(-50%);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.viber-note[hidden] {
  display: none;
}
.viber-note p {
  margin: 0;
}
.viber-note b {
  color: var(--ink);
  font-weight: 600;
}
.viber-note__num {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.viber-note__btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.viber-note__copy {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.viber-note__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  .viber-note {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .viber-note__copy {
    flex: 1;
  }
}

/* =====================================================================
   15. Planner pages: steps, fields and bottom buttons
   Sections 15 to 20 are used by plan-website.html and plan-app.html only.
   Three steps: 1 taps only, 2 optional details (with "Skip this step"),
   3 contact details. main.js shows one step at a time.
   Phones: the Back / Next buttons stay fixed at the bottom of the screen.
   ===================================================================== */

.pl-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 48px;
}
.pl-form {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
/* step names under the form (desktop) */
.pl-stepper {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pl-stepper li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--field);
}
.pl-stepper li.is-done {
  cursor: pointer;
}
.pl-bar {
  display: block;
  height: 5px;
  border-radius: 5px;
  background: var(--line-light);
}
.pl-stepper li.is-on {
  color: var(--ink);
}
.pl-stepper li.is-on .pl-bar {
  background: var(--accent);
}
.pl-stepper li.is-done .pl-bar {
  background: var(--tan, #b4885b);
}
.pl-stepper li.is-done:hover {
  color: var(--accent);
}
.pl-progress__text,
.pl-progress__track {
  display: none;
}
.pl-step {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pl-step[hidden] {
  display: none;
}
.pl-fs {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pl-legend {
  padding: 0;
  margin-bottom: 16px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pl-hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.pl-legend + .pl-hint {
  margin-top: -10px;
}
.pl-fs--sub {
  gap: 10px;
}
.pl-sublegend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.pl-opt {
  font-weight: 500;
  color: var(--field);
}
.pl-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pl-form .input {
  height: 52px;
  border-radius: 12px;
}
.pl-form textarea.input {
  height: auto;
}
.pl-after {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pl-after[hidden] {
  display: none;
}
/* Back / Next buttons */
.pl-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-light);
}
.pl-nav__note {
  margin-right: auto;
  font-size: 0.875rem;
  color: var(--muted);
}
.pl-nav .btn {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}
.pl-nav .btn svg {
  flex: none;
}
.pl-nav [hidden],
.pl-form .form-status:empty {
  display: none;
}
.pl-muted {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.pl-eg {
  font-weight: 400;
  color: var(--muted);
}
.pl-step--optional {
  position: relative;
}
/* "Skip this step" on the optional step's heading line */
.pl-skip {
  position: absolute;
  top: -6px;
  right: 0;
  z-index: 1;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pl-skip:hover,
.pl-skip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 700px) {
  .pl-nav {
    padding-top: 24px;
  }
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .pl-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .pl-stepper .pl-lab {
    font-size: 0.8125rem;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .pl-layout {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .pl-form {
    border: 0;
    border-top: 1px solid var(--line-light);
    border-radius: 0;
    padding: 16px 16px 0;
    gap: 24px;
  }
  .pl-stepper {
    display: none;
  }
  .pl-progress__text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
  }
  .pl-progress__track {
    display: block;
    height: 5px;
    border-radius: 5px;
    background: var(--line-light);
    overflow: hidden;
  }
  .pl-step {
    gap: 26px;
  }
  .pl-legend {
    font-size: 1.25rem;
  }
  .pl-hint {
    font-size: 0.875rem;
  }
  .pl-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .pl-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
  }
  .pl-nav__note {
    display: none;
  }
  .pl-nav .btn {
    flex: 1;
    padding: 0 16px;
  }
  .pl-after.only-phone[hidden] {
    display: none !important;
  }
  /* "Step 1 of 3" and the progress bar */
  .pl-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pl-progress__text b {
    color: var(--ink);
  }
  .pl-progress__fill {
    display: block;
    height: 100%;
    width: var(--pl-pct, 25%);
    background: var(--accent);
    border-radius: 5px;
    transition: width 0.25s ease;
  }
  .pl-nav .pl-back {
    flex: 0 0 104px;
  }
  .pl-form .form-status {
    margin: 0 0 16px;
  }
  .pl-skip {
    top: -4px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.875rem;
  }
  .pl-step .pl-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-progress__fill {
    transition: none;
  }
}

/* =====================================================================
   16. Planner pages: tap-to-choose cards and pills
   .pl-kind: the large cards with an icon ("Show my business").
   .pl-chip: the small rounded pills ("Shop", "Clinic").
   A chosen card or pill turns brown-outlined with a tick.
   ===================================================================== */

.pl-tick {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}
.pl-kinds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pl-kind {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.pl-kind input,
.pl-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pl-kind__ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pl-kind__ic svg {
  width: 22px;
  height: 22px;
}
.pl-kind__txt b {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 3px;
  padding-right: 22px;
}
.pl-kind__txt small {
  display: block;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
.pl-kind__tick {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
}
.pl-kind__tick .pl-tick {
  width: 14px;
  height: 14px;
  color: var(--white);
}
.pl-kind:hover {
  border-color: var(--accent);
}
.pl-kind:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #fffbf7;
}
.pl-kind:has(input:checked) .pl-kind__ic {
  background: var(--accent);
  color: var(--white);
}
.pl-kind:has(input:checked) .pl-kind__tick {
  display: flex;
}
.pl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pl-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.pl-chip .pl-tick {
  display: none;
  width: 16px;
  height: 16px;
  color: currentColor;
}
.pl-chip:hover {
  border-color: var(--accent);
}
.pl-chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.pl-chip:has(input:checked) .pl-tick {
  display: block;
}
.pl-kind:has(input:focus-visible),
.pl-chip:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.pl-ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pl-ticks li {
  display: flex;
  gap: 10px;
  font-size: 0.90625rem;
  line-height: 1.45;
  color: var(--text);
}
.pl-ticks .pl-tick {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.pl-ticks b {
  color: var(--ink);
}
.pl-chip span {
  font-variant-numeric: tabular-nums;
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .pl-kinds {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .pl-kind {
    padding: 14px;
  }
  .pl-kind__ic {
    width: 40px;
    height: 40px;
  }
  .pl-chip {
    min-height: 42px;
    padding: 0 15px;
    font-size: 0.875rem;
  }
}

/* =====================================================================
   17. Planner pages: side column
   Desktop: beside the form ("What happens next", your answers so far).
   Tablets and phones: moves under the form.
   ===================================================================== */

.pl-side {
  width: 360px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pl-tip {
  padding: 20px;
  border-radius: 16px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pl-tip h3 {
  margin: 0;
  font-size: 1.0625rem;
}
.pl-tip p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.pl-next {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pl-next li {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #e8e2db;
}
.pl-next li b {
  display: block;
  color: var(--white);
  font-size: 0.9375rem;
}
.pl-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pl-card {
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pl-card h2 {
  margin: 0;
  font-size: 1.125rem;
}
.pl-sum dl {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pl-sum dl div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}
.pl-sum dl div:last-child {
  border-bottom: 0;
}
.pl-sum dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.pl-sum dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.pl-sum dd.is-empty {
  font-weight: 500;
  color: var(--field);
}
.pl-next--3 li {
  color: var(--muted);
}
.pl-next--3 li b {
  color: var(--ink);
}

/* Desktops: 1000px and wider */
@media (min-width: 1000px) {
  .pl-side {
    position: sticky;
    top: 24px;
  }
  .pl-sum dl div:first-child {
    padding-top: 0;
  }
  .pl-sum dl div:last-child {
    padding-bottom: 0;
  }
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .pl-side {
    width: auto;
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
  .pl-sum dl {
    display: grid;
  }
  .pl-sum dl div:last-child {
    border-bottom: 1px solid var(--line-light);
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .pl-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: none;
  }
  .pl-sum dl {
    display: flex;
  }
  .pl-sum dl div:first-child {
    padding-top: 0;
  }
  .pl-sum dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* Tablets only: 700px to 999px */
@media (min-width: 700px) and (max-width: 999px) {
  .pl-sum dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .pl-sum dl div:first-child {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
  }
  .pl-sum dl div:last-child {
    padding: 12px 0;
  }
  .pl-sum dl div:nth-child(-n + 2) {
    padding-top: 0;
  }
  .pl-sum dl div:nth-last-child(-n + 2) {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* =====================================================================
   18. Planner pages: top of the page and "Prefer to Talk?" card
   The "Prefer to Talk?" card (.pl-callcard) has a thin brand-brown border
   and a soft shadow. Its buttons take each app's
   colour on hover: call blue, WhatsApp green, Viber purple.
   ===================================================================== */

.pl-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.pl-home:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pl-hero {
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 32px;
}
.pl-hero h1 {
  margin: 0;
  font-size: clamp(2.125rem, 4vw, 2.875rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.pl-lead {
  margin: 0;
  max-width: 640px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}
.pl-talk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-talk .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.only-phone {
  display: none !important;
}
.pl-talkrow {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}
.pl-talkrow__btns {
  display: flex;
  gap: 6px;
}
.pl-talkrow .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pl-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
/* call button: blue on hover */
.pl-talk .btn[href^="tel:"]:hover,
.pl-talk .btn[href^="tel:"]:focus-visible,
.pl-talkrow .btn[href^="tel:"]:hover,
.pl-talkrow .btn[href^="tel:"]:focus-visible {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
/* WhatsApp button: green on hover */
.pl-talk .btn[href*="wa.me"]:hover,
.pl-talk .btn[href*="wa.me"]:focus-visible,
.pl-talkrow .btn[href*="wa.me"]:hover,
.pl-talkrow .btn[href*="wa.me"]:focus-visible {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
/* Viber button: purple on hover */
.pl-talk .btn[href^="viber:"]:hover,
.pl-talk .btn[href^="viber:"]:focus-visible,
.pl-talkrow .btn[href^="viber:"]:hover,
.pl-talkrow .btn[href^="viber:"]:focus-visible {
  background: #7360f2;
  border-color: #7360f2;
  color: #fff;
}
.pl-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.pl-trustlist {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}
.pl-trustlist li {
  color: var(--ink);
}
/* "Prefer to Talk?" card: thin brand-brown border and a soft shadow */
.pl-hero .pl-callcard {
  border-color: rgba(90, 20, 8, 0.28); /* --accent, softened */
  box-shadow: 0 12px 28px -18px rgba(90, 20, 8, 0.25);
}

/* Tablets and phones: up to 999px */
@media (max-width: 999px) {
  .pl-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .pl-home {
    width: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .pl-hero {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 14px;
  }
  .pl-hero h1 {
    font-size: 1.875rem;
  }
  .pl-lead {
    font-size: 1rem;
  }
  .only-phone {
    display: flex !important;
  }
  .pl-talkrow .btn {
    padding: 0 12px;
  }
  .pl-home span,
  .pl-callcard {
    display: none;
  }
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  .pl-talkrow {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .pl-talkrow > span:first-child {
    flex-basis: 100%;
  }
  .pl-talkrow .pl-talkrow__btns {
    flex: 1;
  }
  .pl-talkrow .pl-talkrow__btns .btn {
    flex: 1;
    min-height: 44px;
  }
}

/* =====================================================================
   19. Planner pages: slim footer
   ===================================================================== */

.pl-footer {
  border-top: 1px solid var(--line-light);
}
.pl-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.875rem;
  color: var(--muted);
}
.pl-footer__links {
  display: flex;
  gap: 20px;
}
.pl-footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.pl-footer__links a:hover {
  color: var(--accent);
}

/* Phones: up to 699px */
@media (max-width: 699px) {
  .pl-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 28px;
  }
}

/* =====================================================================
   20. Planner pages: "See my plan" popup
   Shows a summary of the answers before sending.
   .hp is a hidden spam-trap field: people never see it, bots fill it in.
   ===================================================================== */

/* spam trap: hidden from people */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.plan-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(24, 19, 15, 0.4);
}
.plan-dialog::backdrop {
  background: rgba(24, 19, 15, 0.45);
}
.plan-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
}
.plan-dialog__head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line-light);
}
.plan-dialog__head h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.plan-dialog__head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.plan-dialog__body {
  padding: 4px 28px;
  overflow-y: auto;
}
.plan-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}
.plan-section:last-child {
  border-bottom: 0;
}
.plan-section h3 {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-section dl {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.plan-section dt {
  color: var(--muted);
}
.plan-section dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.plan-section dd.is-full {
  grid-column: 1 / -1;
}
.plan-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--line-light);
}
.plan-dialog__note {
  color: var(--muted);
  font-size: 0.875rem;
}
.plan-dialog__btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.plan-dialog .btn {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.plan-dialog .btn--light {
  border-color: var(--line);
}
.plan-dialog .btn--light:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.plan-dialog .btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.plan-dialog__status {
  display: none;
  margin: 0 28px 20px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}
.plan-dialog__status.is-success {
  display: block;
  background: #e7f4ea;
  color: #14532d;
}
.plan-dialog__status.is-error {
  display: block;
  background: #fdecea;
  color: var(--error);
}
.plan-done {
  padding: 40px 32px 32px;
  text-align: center;
}
.plan-done__tick {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e7f4ea;
  color: #15803d;
}
.plan-done h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.plan-done p {
  max-width: 420px;
  margin: 10px auto 24px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.plan-dialog dd {
  font-variant-numeric: tabular-nums;
}

/* Small phones: up to 560px */
@media (max-width: 560px) {
  .plan-dialog {
    width: calc(100% - 20px);
  }
  .plan-dialog__head,
  .plan-dialog__body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .plan-section dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }
  .plan-section dd {
    margin-bottom: 8px;
  }
  .plan-dialog__foot {
    padding-left: 20px;
    padding-right: 20px;
  }
  .plan-dialog__btns {
    width: 100%;
  }
  .plan-dialog__btns .btn {
    flex: 1;
  }
}

/* =====================================================================
   21. Privacy and Terms pages
   ===================================================================== */

.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.legal h1 {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}
.legal__updated {
  margin: 0 0 28px;
  font-size: 0.875rem;
  color: var(--muted);
}
.legal__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.legal p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}
.legal li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal b {
  color: var(--ink);
}
