/* =============================================================================
   Metre — global stylesheet
   Merged from the five per-page <style> blocks.

   The five pages did not share one design: index has an opaque black header,
   business/privacy/terms have a translucent white one, and contact is a full
   dark theme. Rather than let the last rule win, every difference is expressed
   as a token that <body> switches:

       <body data-page="index">                     black header, light page
       <body data-page="business">                  white header, static
       <body data-page="privacy"> / "terms"         white header, sticky
       <body data-page="contact" data-theme="dark"> dark theme throughout

   Add a page: give <body> a data-page value and, if it needs the dark palette,
   data-theme="dark". Nothing else in this file needs touching.

   CONTENTS
     1. Tokens and themes
     2. Reset and base
     3. Header, nav, language switcher
     4. Footer
     5. Buttons
     6. Home page
     7. Business page
     8. Legal pages
     9. Contact page
    10. WhatsApp bubble
    11. Accessibility
    12. Responsive
   ========================================================================== */


/* =============================================================================
   1. TOKENS AND THEMES
   ========================================================================== */

:root {
    /* --- palette (light) --- */
    --bg-color: #ffffff;
    --primary-color: #1d1d1f;
    --accent-color: #0071e3;
    --accent-color-hover: #0077ed;
    --text-main: #333333;
    --text-muted: #6e6e73;
    --card-bg: #f5f5f7;
    --border-color: #e5e5ea;

    /* --- header chrome: translucent white (business, privacy, terms) --- */
    --header-bg: rgba(255, 255, 255, 0.8);
    --header-blur: saturate(180%) blur(20px);
    --header-border: rgba(0, 0, 0, 0.05);
    --nav-link: #555555;
    --nav-link-active: #000000;
    --logo-filter: none;

    /* --- language switcher --- */
    --lang-border: #e5e5ea;
    --lang-text: #333333;
    --lang-hover-bg: #f5f5f7;
    --lang-hover-border: #1d1d1f;
    --lang-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23555555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    /* --- footer --- */
    --footer-bg: #f5f5f7;
    --footer-padding: 2rem 5%;

    /* --- misc --- */
    --bubble-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);

    /* --- type --- */
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", Roboto, sans-serif;
}

/* Simplified Chinese needs mainland faces — PingFang TC and Microsoft JhengHei
   have no Simplified coverage and fall through to a generic system font. */
html[lang="zh-Hans"] {
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Roboto, sans-serif;
}

/* --- index: opaque black header sitting above a black hero ---------------- */
body[data-page="index"] {
    --header-bg: #000000;
    --header-blur: none;
    --header-border: rgba(255, 255, 255, 0.08);
    --nav-link: #cccccc;
    --nav-link-active: #ffffff;
    --logo-filter: brightness(0) invert(1);

    --lang-border: rgba(255, 255, 255, 0.35);
    --lang-text: #cccccc;
    --lang-hover-bg: rgba(255, 255, 255, 0.1);
    --lang-hover-border: #ffffff;
    --lang-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23cccccc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- contact: full dark theme -------------------------------------------- */
body[data-theme="dark"] {
    --bg-color: #000000;
    --primary-color: #ffffff;
    --accent-color: #2997ff;
    --accent-color-hover: #47a6ff;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --card-bg: #1c1c1e;
    --border-color: #333336;

    --header-bg: rgba(0, 0, 0, 0.8);
    --header-blur: saturate(180%) blur(20px);
    --header-border: rgba(255, 255, 255, 0.1);
    --nav-link: #a1a1a6;
    --nav-link-active: #ffffff;
    --logo-filter: brightness(0) invert(1);

    --lang-border: #333336;
    --lang-text: #f5f5f7;
    --lang-hover-bg: #2c2c2e;
    --lang-hover-border: #ffffff;
    --lang-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f5f5f7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    --footer-bg: #000000;
    --footer-padding: 2.5rem 5%;

    --bubble-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}


/* =============================================================================
   2. RESET AND BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    min-height: 100vh;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

section {
    padding: 5rem 5%;
}


/* =============================================================================
   3. HEADER, NAV, LANGUAGE SWITCHER
   ========================================================================== */

header {
    background-color: var(--header-bg);
    -webkit-backdrop-filter: var(--header-blur);
    backdrop-filter: var(--header-blur);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--header-border);
    position: static;   /* index: the header does not follow scroll */
}

/* Business keeps the header in flow, but above the sections below it. */
body[data-page="business"] header {
    position: relative;
    z-index: 1000;
}

/* The text-heavy pages keep the header pinned. */
body[data-page="privacy"] header,
body[data-page="terms"] header,
body[data-page="contact"] header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-left img {
    height: 40px;
    width: auto;
    display: block;
    filter: var(--logo-filter);   /* knocked out to white on dark headers */
}

/* Scoped to `header` — the footer language links are a <nav> too. */
header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav a {
    text-decoration: none;
    color: var(--nav-link);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

header nav a:hover {
    color: var(--nav-link-active);
}

header nav a.active {
    font-weight: bold;
    color: var(--nav-link-active);
    position: relative;
}

header nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--nav-link-active);
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.btn-login {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-login:hover {
    color: var(--accent-color);
}

/* --- language switcher ---------------------------------------------------
   Was a two-state <a> toggle; four languages need a real control, so it is
   now a <select> wearing the same pill. */
.btn-lang {
    border: 1px solid var(--lang-border);
    padding: 0.4rem 1rem;
    border-radius: 980px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--lang-text);
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    border-color: var(--lang-hover-border);
    background-color: var(--lang-hover-bg);
    color: var(--nav-link-active);
}

select.btn-lang,
.lang-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2rem;
    max-width: 11rem;
    background-image: var(--lang-arrow);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 6px;
}

/* On Windows the native dropdown list inherits the control's colours — pin it
   light so the options stay readable under the black and dark headers. */
select.btn-lang option,
.lang-select option {
    color: #1d1d1f;
    background-color: #ffffff;
}


/* =============================================================================
   4. FOOTER
   ========================================================================== */

footer {
    background: var(--footer-bg);
    color: var(--text-muted);
    padding: var(--footer-padding);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 0.3rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-locale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

/* Plain links, so the switcher still works with JavaScript disabled. */
.footer-lang-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 0.7rem;
}

.footer-lang-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-lang-links a:not(:first-child) {
    border-left: 1px solid var(--border-color);
    padding-left: 0.7rem;
}

.footer-lang-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-lang-links a[aria-current="true"] {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.footer-socials a {
    display: inline-block;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.footer-socials svg {
    fill: var(--text-muted);
    width: 100%;
    height: 100%;
    transition: fill 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
}

.footer-socials a:hover svg {
    fill: var(--primary-color);
}


/* =============================================================================
   5. BUTTONS
   ========================================================================== */

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.cta-button:hover {
    background-color: var(--accent-color-hover);
    transform: scale(1.02);
}

/* index uses the squarer 8px corner throughout, and no hover scale. */
body[data-page="index"] .cta-button {
    border-radius: 8px;
}

body[data-page="index"] .cta-button:hover {
    transform: none;
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: #333;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    border: 1.5px solid #ccc;
    transition: all 0.2s;
}

.cta-button-secondary:hover {
    background-color: #f5f5f7;
    border-color: #bbb;
    transform: scale(1.02);
}

.hero-buttons-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* =============================================================================
   6. HOME PAGE
   ========================================================================== */

/* --- hero ---------------------------------------------------------------- */
.hero {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 6rem 5% 4rem 5%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.hero.secondary-hero {
    background: #fff;
    color: var(--text-main);
    min-height: auto;
    padding-bottom: 6rem;
    justify-content: center;
}

.hero h1 {
    color: #ffffff;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1rem;
}

.secondary-hero h1 {
    color: var(--primary-color);
}

.hero-title-large {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.hero-mid-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: -0.5rem 0 0.5rem 0;
    color: #f5f5f7;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a1a1a6;
    max-width: 600px;
    margin: 0.25rem auto 0 auto;
    line-height: 1.5;
    font-weight: 400;
}

.secondary-hero .hero-subtitle {
    color: var(--text-muted);
}

.hero-subtitle.list-style {
    text-align: left;
    display: inline-block;
    padding-left: 2rem;
    margin-top: 1.5rem;
    color: #000000;
    font-weight: 500;
}

.hero-subtitle.list-style li {
    margin-bottom: 0.5rem;
}

/* Static on business (it sits inside .feature-rows-section); pinned to the
   corner of the black hero on index. */
.hero-corner-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 2rem;
}

body[data-page="index"] .hero-corner-text {
    position: absolute;
    top: 2rem;
    left: 5%;
    padding-bottom: 0;
    color: #ffffff;
}

.hero-main-cta {
    display: inline-block;
    width: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.hero-disclaimer {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 600px;
    text-align: left;
}

.hero-guide-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.95rem;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.hero-guide-link:hover {
    opacity: 0.8;
}

.secondary-hero-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 2rem auto 2.5rem auto;
    display: block;
    object-fit: contain;
}

/* --- hero image switcher ------------------------------------------------- */
.hero-image-placeholder {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 550px;
    margin: 3rem auto 2rem auto;
}

.switcher-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.switcher-item.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-tag-image {
    position: relative;
    z-index: 5;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- MetrePoint coverage search ------------------------------------------ */
.coverage-section {
    background-color: #f5f5f7;
    padding: 4rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.coverage-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.coverage-icon {
    width: 50px;               /* Adjust base width as needed */
    height: auto;
    display: block;
    margin: 0 auto 0.5rem auto;   /* Centers icon and adds gap above title */
    object-fit: contain;
}
.coverage-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.coverage-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.coverage-search-box {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 980px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.coverage-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 980px;
    background: transparent;
    color: var(--text-main);
}

.coverage-search-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.coverage-search-btn:hover {
    background-color: #333333;
}

.coverage-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.coverage-tag {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 980px;
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.coverage-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.coverage-results-wrapper {
    margin-top: 2rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.coverage-results-header {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr 1.6fr;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    background: var(--card-bg);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.coverage-results-header > span { display: contents; }

.coverage-results-header .cp-name,
.coverage-results-header .cp-region,
.coverage-results-header .cp-district,
.coverage-results-header .cp-category,
.coverage-results-header .cp-address { display: block; }

.coverage-results-list {
    max-height: 420px;
    overflow-y: auto;
}

.coverage-result-row {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr 1.6fr;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.95rem;
    color: var(--text-main);
    align-items: center;
}

.coverage-result-row:last-child { border-bottom: none; }
.coverage-result-row:hover { background-color: var(--card-bg); }
.coverage-result-row .rr-name { font-weight: 600; color: var(--primary-color); }
.coverage-result-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.coverage-no-results {
    padding: 2rem 1.2rem;
    text-align: center;
    color: var(--text-muted);
}

.coverage-detail-panel {
    margin-top: 1.5rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.coverage-detail-back {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 1.2rem;
    padding: 0;
}

.coverage-detail-back:hover { text-decoration: underline; }

.coverage-detail-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.coverage-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 1.5rem;
    margin-bottom: 1.5rem;
}

.coverage-detail-item .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.coverage-detail-item .value { font-size: 1rem; color: var(--text-main); font-weight: 500; }

.coverage-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.coverage-pricing-table td {
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.coverage-pricing-table td:first-child { color: var(--text-muted); }
.coverage-pricing-table td:last-child { text-align: right; font-weight: 600; color: var(--primary-color); }

/* --- feature rows -------------------------------------------------------- */
.feature-rows-section {
    background-color: var(--bg-color);
    padding: 2rem 5%;
    position: relative;
    z-index: 1;
}

body[data-page="index"] .feature-rows-section {
    padding: 4rem 5%;
    margin-top: 40px;
}

.feature-rows-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-section-header {
    text-align: center;
    margin-bottom: 0;
}

.feature-eyebrow {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.feature-section-title {
    color: #0077ed;
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.feature-rows-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text { flex: 1; }

.feature-text h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-image-wrapper {
    flex: 1;
    height: 350px;
    background-color: var(--card-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    overflow: hidden;
    width: 100%;
}

.tall-wrapper {
    flex: 1.5;
    height: 550px;
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-wide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
}

.bg-transparent {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- dashboard cards ----------------------------------------------------- */
.dashboard-section-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dashboard-cards-header {
    margin-bottom: 2rem;
    text-align: left;
}

.dashboard-cards-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.dashboard-cards-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.dashboard-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dashboard-card-text {
    width: 100%;
    padding: 2rem 2rem 0.5rem 2rem;
}

.dashboard-card-text h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.dashboard-card-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.dashboard-card img {
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 1.5rem 1.5rem 0 1.5rem;
    object-fit: contain;
    display: block;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq-section {
    background-color: var(--card-bg);
    padding: 6rem 5%;
}

.faq-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 4rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.faq-item { border-top: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: 1px solid var(--border-color); }

.faq-item summary {
    padding: 1.8rem 0;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    color: var(--primary-color);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '';
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 5px;
}

.faq-item[open] summary::after { transform: translateY(3px) rotate(-135deg); }

.faq-content {
    padding: 0 0 2rem 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
}


/* =============================================================================
   7. BUSINESS PAGE
   ========================================================================== */

.interactive-features-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-left: auto;
    margin-right: 1%;
    max-width: 950px;
}

.interactive-image-container {
    width: 35%;
    max-width: 350px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.feature-demo-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.static-text-container {
    width: 65%;
    max-width: 600px;
    text-align: left;
    padding: 0;
}

.static-text-container h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-color);
}

.static-text-container .sub-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 0.3rem;
}

.interactive-bottom-cta {
    text-align: center;
    margin-top: 2rem;
}

.interactive-bottom-cta h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-trial-note {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    text-align: center;
}
.safety-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.safety-container {
    max-width: 800px;
    margin: 0 auto;
}

.safety-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

.safety-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
}
/* --- pricing ------------------------------------------------------------- */
.pricing-section {
    background-color: var(--bg-color);
    padding: 5rem 5%;
    text-align: center;
}

.pricing-header { margin-bottom: 4rem; }

.pricing-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.pricing-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.pricing-card-price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.price-prefix {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: -0.2rem;
}

.pricing-card-price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

.pricing-btn {
    text-align: center;
    display: block;
    padding: 1rem;
    border-radius: 98px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.pricing-card:not(.featured) .pricing-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.pricing-card.featured {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover { transform: scale(1.05) translateY(-5px); }

.pricing-card.featured .pricing-card-title,
.pricing-card.featured .pricing-card-price { color: #fff; }

.pricing-card.featured .pricing-card-price span { color: rgba(255, 255, 255, 0.7); }
.pricing-card.featured .pricing-card-desc { color: rgba(255, 255, 255, 0.8); }
.pricing-card.featured .pricing-features li { color: #fff; }

.pricing-card.featured .pricing-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.pricing-card.featured .pricing-btn:hover { background: var(--accent-color-hover); }


/* =============================================================================
   8. LEGAL PAGES (privacy, terms)
   ========================================================================== */

.legal-section {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 60vh;
}

.legal-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.legal-section h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.legal-section p,
.legal-section ul {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.legal-section ul { padding-left: 1.5rem; }
.legal-section li { margin-bottom: 0.4rem; }

.legal-section a,
.legal-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover,
.legal-link:hover { text-decoration: underline; }

/* Unused in the current markup — kept for the download-callout pattern. */
.download-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.download-info h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 0.3rem; }
.download-info p { margin-bottom: 0; font-size: 0.9rem; color: var(--text-muted); }

.btn-download {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.btn-download:hover { background-color: var(--accent-color-hover); }


/* =============================================================================
   9. CONTACT PAGE
   ========================================================================== */

.contact-content {
    padding: 4rem 5%;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-title {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item h2 {
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 600;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin: 0.2rem 0;
}

.service-hours {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
}

.whatsapp-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-btn {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 0.75rem 1.8rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-top: 1.2rem;
}

.contact-btn:hover { transform: scale(1.03); background-color: #20ba5a; }

.address-text {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* =============================================================================
   10. WHATSAPP BUBBLE
   ========================================================================== */

.whatsapp-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--bubble-shadow);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-bubble:hover { transform: scale(1.1); }
.whatsapp-bubble svg { width: 35px; height: 35px; fill: white; }


/* =============================================================================
   11. ACCESSIBILITY
   The original pages had no focus styling at all, which the language <select>
   in particular needs.
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =============================================================================
   12. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {

    /* --- header ---------------------------------------------------------- */
    header { padding: 0.6rem 4%; }

    .header-left { flex: 0 0 auto; }
    .header-left img { height: 26px; }
    .header-right { flex: 0 0 auto; gap: 0.8rem; }

    header nav ul { gap: 0.8rem; justify-content: center; }
    header nav a { font-size: 13px; white-space: nowrap; }

    /* Business sizes the nav to its content; the others take up the slack. */
    body[data-page="business"] header nav { flex: none; }

    .btn-login { font-size: 0.8rem; white-space: nowrap; }

    .btn-lang {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    select.btn-lang,
    .lang-select {
        padding-right: 1.5rem;
        max-width: 8.5rem;
        background-position: right 0.5rem center;
    }

    /* --- sections -------------------------------------------------------- */
    body[data-page="index"] section { padding: 3rem 5%; }
    body[data-page="business"] section { padding: 1.5rem 5%; }

    /* --- hero ------------------------------------------------------------ */
    .hero {
        padding-top: 4rem;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero-corner-text { font-size: 1.1rem; }
    body[data-page="index"] .hero-corner-text { top: 1rem; }
    /* Target the hero title or container directly following the corner text */
    body[data-page="index"] .hero h1 {
        margin-top: 2.5rem; /* Pushes the hero content down away from the absolute corner text */
    }
    .hero-title-large { font-size: 2.6rem; letter-spacing: -1px; }
    .hero-mid-title { font-size: 1.6rem; margin: 0.5rem 0 1rem 0; }
    .hero-subtitle { font-size: 1rem; padding: 0 0.5rem; line-height: 1.5; }

    /* English runs long — pull the display sizes down so it still fits. */
    html[lang="en"] .hero-title-large { font-size: 2rem; }
    html[lang="en"] .hero-mid-title { font-size: clamp(0.72rem, 3.8vw, 1.3rem); white-space: nowrap; }
    html[lang="en"] .hero-subtitle { font-size: 0.95rem; }
    html[lang="en"] .feature-section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    .cta-button {
        width: 90%;
        max-width: 320px;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        text-align: center;
    }

    /* The hero CTA opts out of the full-width treatment. */
    .hero-main-cta {
        width: auto !important;
        max-width: none !important;
        padding: 0.7rem 1.4rem !important;
        font-size: 0.95rem;
        border-radius: 8px;
        margin-bottom: -1rem !important;
    }

    .hero-image-placeholder {
        width: 100%;
        height: 350px;
        margin: 0.5rem auto 0 auto;
    }

    .hero-tag-image { max-height: 100%; }
    .hero-disclaimer { text-align: center; font-size: 0.8rem; padding: 0 1rem; }

    .hero-subtitle.list-style {
        padding-left: 1.5rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }

    .secondary-hero-image { margin: 1.5rem auto; }

    /* --- coverage search -------------------------------------------------- */
    .coverage-icon {
        width: 48px;            /* Scaled down icon for mobile viewports */
        margin-bottom: 0.75rem;
    }
    .coverage-results-header { display: none; }

    .coverage-result-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .coverage-result-row span:not(.rr-name)::before {
        content: attr(data-label) "：";
        color: var(--text-muted);
        font-weight: 500;
    }

    .coverage-detail-grid { grid-template-columns: 1fr; }

    .coverage-search-box {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .coverage-search-input {
        background: #ffffff;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    /* --- feature rows ----------------------------------------------------- */
    body[data-page="index"] .feature-rows-section {
        margin-top: 20px;
        padding-top: 3rem;
    }

    .feature-section-title {
        font-size: 2.25rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .feature-rows-wrapper { gap: 3rem; padding-bottom: 1rem; }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column-reverse;
        text-align: left;
        gap: 1.5rem;
    }

    .feature-text h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
    .feature-text p { font-size: 1rem; }

    .feature-image-wrapper,
    .tall-wrapper {
        width: 100%;
        height: auto;
        min-height: 250px;
        padding: 1rem 0;
        background-color: transparent;
        box-shadow: none;
        border: none;
    }

    .feature-image-wrapper img { object-fit: contain; }

    /* --- dashboard cards -------------------------------------------------- */
    .dashboard-cards-header h2 { font-size: 1.5rem; }
    .dashboard-cards-header p { font-size: 1rem; }

    .dashboard-cards-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .dashboard-card-text { padding: 1.5rem 1.5rem 0.5rem 1.5rem; }
    .dashboard-card-text h3 { font-size: 1.25rem; }
    .dashboard-card-text p { font-size: 0.95rem; }
    .dashboard-card img { padding: 1rem; }

    /* --- FAQ -------------------------------------------------------------- */
    .faq-section { padding: 4rem 5%; }
    .faq-title { font-size: 2rem; margin-bottom: 2.5rem; }
    .faq-item summary { font-size: 1.05rem; padding: 1.2rem 0; gap: 1rem; }
    .faq-content { font-size: 0.95rem; padding-bottom: 1.5rem; }

    /* --- business --------------------------------------------------------- */
    .interactive-features-wrapper {
        flex-direction: row;
        gap: 0.8rem;
        margin-left: -5%;
        margin-right: auto;
        width: 107%;
    }

    .interactive-image-container {
        width: 42%;
        max-width: 180px;
    }

    .static-text-container {
        width: 70%;
        padding: 0;
        text-align: left;
    }
    .safety-section {
        padding: 40px 16px;
    }

    .safety-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .safety-description {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: left; /* Left-aligned for better mobile reading flow */
    }
    .static-text-container h2 { font-size: 1.1rem; line-height: 1.3; }
    .static-text-container h2 .mobile-shrink { font-size: 1.1rem; white-space: normal; }
    .static-text-container .sub-title { font-size: 0.85rem; }

    .pricing-title { font-size: 2.2rem; }
    .pricing-container { flex-direction: column; align-items: center; }
    .pricing-card { width: 100%; max-width: 100%; padding: 2rem 1.5rem; }
    .pricing-card-price { font-size: 2.2rem; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-5px); }

    /* --- legal ------------------------------------------------------------ */
    .legal-section { padding: 3rem 5%; }
    .legal-section h1 { font-size: 2rem; }
    .download-box { flex-direction: column; text-align: left; align-items: flex-start; padding: 1.2rem; }
    .btn-download { width: 100%; text-align: center; }

    /* --- contact ---------------------------------------------------------- */
    .contact-content { padding: 3rem 4%; gap: 2rem; }
    .contact-title { font-size: 2.2rem; }

    /* --- footer ----------------------------------------------------------- */
    .footer-main { flex-direction: column; gap: 0.8rem; }
    .footer-locale { flex-direction: column; gap: 0.4rem; }

    /* --- WhatsApp bubble -------------------------------------------------- */
    .whatsapp-bubble {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-bubble svg { width: 28px; height: 28px; }
}
