/* SARISARI - Homepage (index.php only) */

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/MaterialIcons-Regular.woff2') format('woff2'),
         url('/fonts/MaterialIcons-Regular.woff') format('woff');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

:root {
    --ink: #1E1548;
    --ink-soft: #5A527A;
    --cream: #FFFFFF;
    --cream-deep: #FFF8EC;
    --paper: #FFFFFF;
    --line: rgba(30, 21, 72, 0.1);

    /* Logo colors */
    --purple: #5B2FE0;
    --purple-dark: #3E1BA8;
    --blue: #1599E8;
    --teal: #09B9B0;
    --yellow: #FFB718;
    --coral: #F45B64;
    --pink: #ED3F91;
    --violet: #A84DE0;

    --display: 'Fredoka', 'Quicksand', sans-serif;
    --body: 'Quicksand', sans-serif;
    --rainbow: linear-gradient(90deg, #5B2FE0, #1599E8, #09B9B0, #F45B64, #ED3F91, #A84DE0);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--body);
    font-weight: 500;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn .material-icons { font-size: 20px; transition: transform 0.2s ease; }
.btn:hover .material-icons { transform: translateX(4px); }

.btn-primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 6px 0 var(--purple-dark), 0 14px 28px rgba(91, 47, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--purple-dark), 0 18px 32px rgba(91, 47, 224, 0.4); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--purple-dark), 0 6px 12px rgba(91, 47, 224, 0.3); }
.btn-primary:disabled { opacity: 0.75; cursor: wait; }

.btn-glass {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 6px 0 rgba(30, 21, 72, 0.18), 0 14px 28px rgba(30, 21, 72, 0.12);
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(30, 21, 72, 0.18), 0 18px 32px rgba(30, 21, 72, 0.16); }
.btn-glass:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(30, 21, 72, 0.18); }

.btn-white {
    background: #fff;
    color: var(--purple);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22); }
.btn-white:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22); }

.btn-block { width: 100%; }

/* ============ NAV ============ */
.header {
    position: fixed;
    top: 14px; left: 0; right: 0;
    z-index: 100;
    padding: 0 16px;
    pointer-events: none;
}

.header-inner {
    pointer-events: auto;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 22px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(30, 21, 72, 0.12);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 36px rgba(30, 21, 72, 0.18);
}

.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: #F1ECFF; color: var(--purple); }

.login-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.login-btn:hover { background: var(--purple); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 150px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #BFE6F7 url('../images/hero7.webp') center / cover no-repeat;
    animation: heroZoom 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Soft glow behind the text so the illustration stays vivid at the edges */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 52% 46% at 50% 44%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 72%);
}

@keyframes heroZoom {
    from { transform: scale(1.09); }
    to { transform: scale(1); }
}

.hero-content { text-align: center; max-width: 860px; }

.hero-content > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-content > :nth-child(1) { animation-delay: 0.15s; }
.hero-content > :nth-child(2) { animation-delay: 0.28s; }
.hero-content > :nth-child(3) { animation-delay: 0.42s; }
.hero-content > :nth-child(4) { animation-delay: 0.56s; }
.hero-content > :nth-child(5) { animation-delay: 0.7s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(30, 21, 72, 0.12);
}

.hero-title {
    margin-top: 22px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(38px, 6.6vw, 86px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

/* Second line sits on a tilted white sticker */
.hero-sticker {
    display: inline-block;
    margin-top: 0.14em;
    padding: 0.04em 0.34em 0.1em;
    background: #fff;
    border-radius: 0.3em;
    transform: rotate(-2deg);
    box-shadow: 0 0.09em 0 rgba(30, 21, 72, 0.14), 0 0.3em 0.6em rgba(30, 21, 72, 0.18);
}

.gradient-text {
    background: var(--rainbow);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--purple);
    animation: rainbowShift 8s linear infinite alternate;
}

@keyframes rainbowShift {
    from { background-position: 0% 0; }
    to { background-position: 100% 0; }
}

.hero-sub {
    max-width: 520px;
    margin: 26px auto 0;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 600;
    color: var(--ink);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-perks {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hero-perks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
}

.hero-perks .material-icons { font-size: 18px; color: var(--teal); }

/* ============ AWNING ============ */
/* Striped store awning with scalloped edge, in the logo colors */
.awning {
    --w: 56px;
    position: relative;
    z-index: 3;
    height: 22px;
    background: repeating-linear-gradient(90deg,
        var(--purple) 0 var(--w),
        var(--blue) var(--w) calc(var(--w) * 2),
        var(--teal) calc(var(--w) * 2) calc(var(--w) * 3),
        var(--yellow) calc(var(--w) * 3) calc(var(--w) * 4),
        var(--coral) calc(var(--w) * 4) calc(var(--w) * 5),
        var(--pink) calc(var(--w) * 5) calc(var(--w) * 6));
    filter: drop-shadow(0 8px 10px rgba(30, 21, 72, 0.18));
}

.awning::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: calc(var(--w) / 2);
    margin-top: -1px;
    background: inherit;
    -webkit-mask: radial-gradient(circle calc(var(--w) / 2) at 50% 0, #000 96%, transparent 100%) 0 0 / var(--w) calc(var(--w) / 2) repeat-x;
    mask: radial-gradient(circle calc(var(--w) / 2) at 50% 0, #000 96%, transparent 100%) 0 0 / var(--w) calc(var(--w) / 2) repeat-x;
}

.hero + .awning { margin-top: -22px; }

/* ============ SECTION HEADS ============ */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }

.eyebrow {
    display: inline-block;
    padding: 5px 14px;
    background: #F1ECFF;
    color: var(--purple);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin-top: 14px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.section-head p { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }

/* ============ SCROLL REVEAL ============ */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
}
/* Scrolled past and now above the screen: comes back in from the top */
.js [data-reveal].above { transform: translateY(-32px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ============ FEATURES / SHOWCASE ============ */
.features { position: relative; padding: 120px 0 90px; }

.devices {
    position: relative;
    max-width: 940px;
    margin: 0 auto 80px;
    padding: 0 8% 0 0;
    perspective: 1400px;
}

/* Colored blobs behind the screens */
.devices::before,
.devices::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}
.devices::before { width: 46%; aspect-ratio: 1; left: -7%; top: -9%; background: var(--yellow); opacity: 0.9; }
.devices::after { width: 34%; aspect-ratio: 1; right: -2%; bottom: -10%; background: var(--teal); opacity: 0.9; }

.device-tablet,
.device-phone {
    position: relative;
    z-index: 1;
    background: var(--ink);
    overflow: hidden;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.device-tablet {
    border: 12px solid var(--ink);
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(30, 21, 72, 0.3);
}

.device-tablet img { width: 100%; border-radius: 18px; }

.device-phone {
    position: absolute;
    right: 0;
    bottom: -7%;
    width: 23%;
    border: 8px solid var(--ink);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(30, 21, 72, 0.4);
    animation: bob 6s ease-in-out infinite;
}

.device-phone img { width: 100%; border-radius: 22px; }

@keyframes bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    --c: var(--purple);
    --c-soft: #EFEAFF;
    position: relative;
    padding: 28px;
    background: var(--paper);
    border: 2px solid var(--c-soft);
    border-radius: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.7s ease;
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    border-color: var(--c);
    box-shadow: 8px 8px 0 var(--c);
}

.fc-blue   { --c: var(--blue);   --c-soft: #E1F2FD; }
.fc-purple { --c: var(--purple); --c-soft: #EFEAFF; }
.fc-teal   { --c: var(--teal);   --c-soft: #DDF6F4; }
.fc-yellow { --c: var(--yellow); --c-soft: #FFF2D2; }
.fc-pink   { --c: var(--pink);   --c-soft: #FDE4F0; }
.fc-red    { --c: var(--coral);  --c-soft: #FEE6E8; }

.feature-icon {
    width: 60px; height: 60px;
    display: grid;
    place-items: center;
    background: var(--c);
    color: #fff;
    border-radius: 18px;
    transform: rotate(-6deg);
    transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.feature-card:hover .feature-icon { transform: rotate(4deg) scale(1.08); }
.feature-icon .material-icons { font-size: 30px; }

.feature-card h3 { margin-top: 20px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.feature-card p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }

/* ============ WHO IT'S FOR ============ */
/* A cream panel holding four tilted, chunky cards, one per landing page */
.audience {
    position: relative;
    margin: 10px 16px 70px;
    padding: 84px 0 96px;
    background: var(--cream-deep);
    border-radius: 56px;
    overflow: hidden;
}

/* Dotted texture fading in from the corner, as on the pricing panel */
.audience::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(rgba(91, 47, 224, 0.13) 1.5px, transparent 1.6px) 0 0 / 22px 22px;
    -webkit-mask: linear-gradient(135deg, #000, transparent 55%);
    mask: linear-gradient(135deg, #000, transparent 55%);
    pointer-events: none;
}

.audience .container { position: relative; }

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.audience-card {
    --c: var(--purple);
    --c-light: #7E57F2;
    --c-dark: var(--purple-dark);
    --text: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: linear-gradient(150deg, var(--c-light) 0%, var(--c) 60%);
    color: var(--text);
    border-radius: 30px;
    box-shadow: 0 10px 0 var(--c-dark), 0 26px 40px rgba(30, 21, 72, 0.16);
    text-decoration: none;
    overflow: hidden;
    /* rotate/translate are separate from transform, which the scroll reveal uses */
    rotate: -1.6deg;
    /* One gentle ease-out for the whole hover: no bounce or overshoot */
    transition: translate 0.45s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.audience-card:nth-child(even) { rotate: 1.6deg; }

.audience-card:hover {
    translate: 0 -8px;
    rotate: 0deg;
    box-shadow: 0 18px 0 var(--c-dark), 0 36px 50px rgba(30, 21, 72, 0.22);
}

.audience-card:active { translate: 0 2px; box-shadow: 0 6px 0 var(--c-dark); }

/* Big soft circles in the corner give each card some depth */
.audience-card::before,
.audience-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}
.audience-card::before { width: 170px; height: 170px; right: -56px; top: -62px; }
.audience-card::after  { width: 90px;  height: 90px;  right: 38px;  top: 64px; background: rgba(255, 255, 255, 0.1); }

.ac-purple { --c: var(--purple); --c-light: #7E57F2; --c-dark: var(--purple-dark); }
.ac-blue   { --c: var(--blue);   --c-light: #45B6F7; --c-dark: #0D76B6; }
.ac-teal   { --c: var(--teal);   --c-light: #35D2C8; --c-dark: #068E87; }
.ac-yellow { --c: var(--yellow); --c-light: #FFD05E; --c-dark: #D99400; --text: var(--ink); }

/* Icon on a tilted white tile, like the feature icons */
.audience-card > .material-icons {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--c-dark);
    border-radius: 20px;
    font-size: 32px;
    rotate: -8deg;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
    transition: rotate 0.45s cubic-bezier(0.22, 1, 0.36, 1), scale 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience-card:hover > .material-icons { rotate: 0deg; scale: 1.06; }

.audience-card h3 {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-family: var(--display);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.12;
}

.audience-card p {
    position: relative;
    z-index: 1;
    margin: 10px 0 22px;
    font-size: 15.5px;
    font-weight: 600;
    opacity: 0.95;
}

/* "Alamin pa" as a white pill button */
.audience-card span {
    position: relative;
    z-index: 1;
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #fff;
    color: var(--c-dark);
    border-radius: 999px;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.ac-yellow span { color: var(--ink); }

.audience-card span .material-icons { font-size: 18px; transition: translate 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.audience-card:hover span .material-icons { translate: 5px 0; }

/* The scroll-reveal rule (.js [data-reveal]) sets its own transition and would
   otherwise replace the one above, making the hover snap. This more specific
   rule restores it: the hover eases with no delay, the reveal keeps its stagger. */
.audience-grid .audience-card[data-reveal] {
    transition: translate 0.45s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: 0s, 0s, 0s, var(--d, 0s), var(--d, 0s);
}

@media (max-width: 960px) {
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .audience { margin: 0 10px 50px; padding: 64px 0 72px; border-radius: 36px; }
}

/* Phones keep the 2 x 2 grid, with everything scaled down to fit */
@media (max-width: 560px) {
    .audience .container { padding: 0 14px; }
    .audience-grid { gap: 14px 12px; }
    .audience-card { padding: 18px 14px 16px; border-radius: 22px; rotate: -1.2deg; box-shadow: 0 7px 0 var(--c-dark), 0 16px 26px rgba(30, 21, 72, 0.14); }
    .audience-card:nth-child(even) { rotate: 1.2deg; }
    .audience-card::before { width: 110px; height: 110px; right: -40px; top: -44px; }
    .audience-card::after { display: none; }
    .audience-card > .material-icons { width: 46px; height: 46px; border-radius: 15px; font-size: 25px; }
    .audience-card h3 { margin-top: 14px; font-size: 18px; }
    .audience-card p { margin: 8px 0 14px; font-size: 13px; line-height: 1.45; }
    .audience-card span { padding: 7px 13px; font-size: 13px; }
    .audience-card span .material-icons { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .audience-card, .audience-card:nth-child(even) { rotate: 0deg; }
}

/* ============ TICKER ============ */
.ticker {
    position: relative;
    z-index: 2;
    margin: 20px -20px;
    padding: 16px 0;
    background: var(--ink);
    transform: rotate(-1.5deg);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: ticker 28s linear infinite;
}

.ticker-track span {
    padding: 0 22px;
    font-family: var(--display);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 600;
    color: var(--c, #fff);
}

.ticker-track span::after { content: '✦'; margin-left: 44px; color: rgba(255, 255, 255, 0.35); font-size: 0.7em; vertical-align: middle; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ ABOUT ============ */
.about { padding: 110px 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap { position: relative; }

.about-image-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 62% center;
    border: 10px solid #fff;
    border-radius: 34px;
    transform: rotate(-2.5deg);
    box-shadow: 0 30px 60px rgba(30, 21, 72, 0.22);
    transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.about-image-wrap:hover img { transform: rotate(0deg) scale(1.02); }

.about-ring {
    position: absolute;
    inset: 6% -5% -7% 7%;
    background: var(--pink);
    border-radius: 34px;
    transform: rotate(3deg);
}

.about-text .section-title { margin-bottom: 20px; }
.about-text p { margin-bottom: 14px; font-size: 17px; color: var(--ink-soft); }

.about-values { margin-top: 28px; display: grid; gap: 12px; }

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 0 var(--line);
}
.value-item .material-icons { font-size: 30px; }
.value-item strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.2; }
.value-item span { font-size: 14.5px; color: var(--ink-soft); }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 90px 0 110px; background: var(--cream-deep); border-radius: 56px 56px 0 0; }

.testimonial-grid { columns: 3; column-gap: 22px; }

.testimonial-card {
    break-inside: avoid;
    margin-bottom: 22px;
    padding: 28px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 6px 0 rgba(30, 21, 72, 0.07);
    transition: transform 0.25s ease, opacity 0.7s ease;
}
.testimonial-card:hover { transform: translateY(-4px) rotate(-0.6deg); }

.quote-mark {
    height: 38px;
    font-size: 0;
    color: var(--purple);
}
/* Swap the straight quote in the markup for a curly one */
.quote-mark::before {
    content: '\201C';
    font-family: var(--display);
    font-size: 76px;
    font-weight: 700;
    line-height: 1;
}
.testimonial-card:nth-child(6n+2) .quote-mark { color: var(--pink); }
.testimonial-card:nth-child(6n+3) .quote-mark { color: var(--blue); }
.testimonial-card:nth-child(6n+4) .quote-mark { color: var(--teal); }
.testimonial-card:nth-child(6n+5) .quote-mark { color: var(--violet); }
.testimonial-card:nth-child(6n+6) .quote-mark { color: var(--yellow); }

.testimonial-card > p { font-size: 16.5px; font-weight: 600; }

.author { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
}
.author strong { display: block; font-size: 15.5px; line-height: 1.25; }
.author span:not(.avatar) { font-size: 13.5px; color: var(--ink-soft); }

/* ============ PRICING ============ */
.pricing { padding: 0 0 110px; background: var(--cream-deep); }

.pricing-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 72px 64px 64px;
    background: linear-gradient(135deg, #2A1670 0%, #5B2FE0 55%, #A84DE0 100%);
    border-radius: 44px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(62, 27, 168, 0.35);
}

/* Dotted texture */
.pricing-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.6px) 0 0 / 22px 22px;
    -webkit-mask: linear-gradient(120deg, #000, transparent 60%);
    mask: linear-gradient(120deg, #000, transparent 60%);
    pointer-events: none;
}

.pricing-card > .awning { position: absolute; top: 0; left: 0; right: 0; --w: 40px; height: 14px; }

.pricing-main { position: relative; }

.pricing .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }

.price {
    margin-top: 12px;
    font-family: var(--display);
    font-size: clamp(84px, 13vw, 150px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}
.price span { font-size: 0.24em; font-weight: 600; letter-spacing: 0; opacity: 0.85; }

.pricing-main > p { margin-top: 12px; font-size: 18px; font-weight: 600; opacity: 0.92; }

.pricing-main > p.trial-note {
    display: inline-block;
    margin: 20px 0 28px;
    padding: 8px 18px;
    background: var(--yellow);
    color: var(--ink);
    border-radius: 12px;
    font-family: var(--display);
    font-size: 17px;
    opacity: 1;
    transform: rotate(-2deg);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

.pricing-main .btn { display: flex; width: fit-content; }

.pricing-features {
    position: relative;
    list-style: none;
    display: grid;
    gap: 4px;
    padding: 26px 28px;
    background: #fff;
    color: var(--ink);
    border-radius: 28px;
    transform: rotate(1.5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 2px dashed var(--line);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .material-icons { color: var(--teal); }
.pricing-features li:nth-child(3n+2) .material-icons { color: var(--pink); }
.pricing-features li:nth-child(3n+3) .material-icons { color: var(--blue); }

/* ============ FOOTER ============ */
.footer {
    padding: 56px 24px 40px;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.footer-logo { height: 40px; width: auto; margin: 0 auto 14px; }

.footer-links { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; }
.footer-links + .footer-links { margin-top: -8px; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: 14px; opacity: 0.6; }

/* ============ MODALS ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 21, 72, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease both;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    padding: 36px 32px 30px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 40px 90px rgba(30, 21, 72, 0.45);
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.modal-wide { max-width: 660px; }

/* Small awning along the top of every modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 10px;
    background: repeating-linear-gradient(90deg,
        var(--purple) 0 36px, var(--blue) 36px 72px, var(--teal) 72px 108px,
        var(--yellow) 108px 144px, var(--coral) 144px 180px, var(--pink) 180px 216px);
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(30px) scale(0.94); } }

.modal-close {
    position: absolute;
    top: 22px; right: 16px;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: #F3F1F8;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.modal-close:hover { background: #FEE6E8; color: var(--coral); transform: rotate(90deg); }
.modal-close .material-icons { font-size: 20px; }

.modal-header { text-align: center; margin: 8px 0 22px; }

.modal-icon {
    width: 68px; height: 68px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--purple), var(--violet));
    color: #fff;
    border-radius: 22px;
    transform: rotate(-6deg);
    box-shadow: 0 10px 22px rgba(91, 47, 224, 0.3);
}
.modal-icon .material-icons { font-size: 34px; }

.modal-header h2 { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.15; }
.modal-header p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E6E2F2;
    border-radius: 16px;
    background: #FBFAFE;
    font-family: var(--body);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: #A9A3C0; font-weight: 500; }
.field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(91, 47, 224, 0.15);
}

#loginForm .btn { margin-top: 6px; }

.register-link { margin-top: 22px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.register-link a { color: var(--purple); font-weight: 700; text-decoration: none; }
.register-link a:hover { text-decoration: underline; }

.modal-body { overflow-y: auto; margin: 0 -12px; padding: 0 12px 4px; }

.policy-section { margin-bottom: 20px; }
.policy-section h4 { margin-bottom: 6px; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--purple); }
.policy-section p, .policy-section li { font-size: 15px; color: var(--ink-soft); }
.policy-section ul { margin: 6px 0 0 20px; }

.faq-list { display: grid; gap: 10px; }
.faq-item { background: #F7F5FC; border-radius: 18px; overflow: hidden; }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.faq-question:hover { color: var(--purple); }
.faq-question .material-icons { flex-shrink: 0; color: var(--purple); }
.faq-answer { display: none; padding: 0 18px 16px; }
.faq-answer p, .faq-answer li { font-size: 15px; color: var(--ink-soft); }
.faq-answer ul { margin: 6px 0 6px 20px; }

.contact-options { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: #F7F5FC; border-radius: 18px; }
.contact-icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; }
.contact-item strong { display: block; font-size: 15.5px; line-height: 1.3; }
.contact-item span { font-size: 14px; color: var(--ink-soft); }
.contact-note { margin: 16px 0 20px; padding: 12px 16px; background: #FFF2D2; border-radius: 14px; font-size: 14px; font-weight: 600; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { columns: 2; }
    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .about-image-wrap { max-width: 560px; margin: 0 auto; }
    .pricing-card { grid-template-columns: 1fr; padding: 60px 36px 44px; }
    .pricing-main { text-align: center; }
    .pricing-main .btn { margin: 0 auto; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-inner { padding-left: 18px; }
    .hero { padding: 104px 18px 130px; align-items: flex-start; }
    .hero-bg { background-image: url('../images/hero7-mobile.webp'); background-position: center bottom; }
    .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0) 70%); }
    .hero-content { margin-top: 4vh; }
    .hero-badge { font-size: 13px; padding: 7px 14px; }
    .hero-title { font-size: clamp(27px, 9vw, 56px); }
    .hero-sticker { white-space: nowrap; }
    .hero-actions .btn { padding: 14px 24px; font-size: 16px; }
    .awning { --w: 44px; }
    .features { padding: 90px 0 70px; }
    .devices { margin-bottom: 64px; }
    .device-tablet { border-width: 7px; border-radius: 18px; }
    .device-tablet img { border-radius: 11px; }
    .device-phone { width: 27%; border-width: 5px; border-radius: 18px; }
    .device-phone img { border-radius: 13px; }
    .about { padding: 80px 0; }
    .testimonials { border-radius: 36px 36px 0 0; padding: 70px 0 80px; }
    .pricing { padding-bottom: 80px; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; border-radius: 22px; }
    .feature-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; }
    .feature-card h3 { margin-top: 0; font-size: 19px; }
    .feature-card p { font-size: 15px; }
    .testimonial-grid { columns: 1; }
    .pricing-card { padding: 52px 20px 28px; border-radius: 32px; }
    .pricing-features { padding: 18px 20px; transform: none; }
    .pricing-features li { font-size: 16px; }
    .modal-content { padding: 32px 22px 24px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* Monthly price under the per-day headline */
.pricing-main > p.price-monthly {
    margin-top: 8px;
    font-family: var(--display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    opacity: 1;
}

/* The slanted ticker is deliberately wider than the screen. Clip it here so
   it can't widen the page: on phones a wider page makes the fixed top bar
   wider than the screen too, cutting off its right side and top. */
html {
    overflow-x: hidden;
}

main {
    overflow: hidden;
}
