:root {
    --bg: #000000;
    --surface: #151517;
    --surface-elevated: #1C1C1E;
    --text-primary: #FFFFFF;
    --text-secondary: #98989E;
    --accent: #5E5CE6;
    /* Indigo */
    --accent-glow: rgba(94, 92, 230, 0.4);
    --warning: #FF9F0A;
    --danger: #FF453A;
    --success: #30D158;
}

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

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    /* Ensuring it starts from left */
    right: 0;
    /* Ensuring it stretches fully */
    z-index: 1000;
    /* Increased Z-index to be safe */
}

.logo {
    font-weight: 800;
    font-size: 24px;
    /* Increased font size slightly if needed but keep existing for now unless specified */
    letter-spacing: -1px;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Added for vertical centering if needed */
    gap: 8px;
    text-align: center;
    /* Explicit text align */
    margin: 0 auto;
    /* Auto margins for centering block level */
}

.nav-logo-img {
    width: 80px;
    height: auto;
}

.btn-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.btn-small:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-primary);
    color: var(--bg);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hero */
.hero {
    padding-top: 160px;
    /* Reduced "distanze" */
    padding-bottom: 60px;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: var(--surface-elevated);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: inline-block;
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.micro-copy {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    font-style: italic;
}

/* Phone Mockup (CSS Only) */
.hero-visual {
    margin-top: 60px;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 50px;
    border: 12px solid #2b2b2b;
    position: relative;
    box-shadow: 0 0 0 2px #111, 0 30px 60px -10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: rotateX(5deg);
    transition: transform 0.5s;
    /* Proper centering for image */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dynamic Island / Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
}

.phone-mockup:hover {
    transform: rotateX(0deg) scale(1.02);
}

.screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.app-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Legacy UI Styles Removed (Keeping simple for now) */
.mockup-bg {
    background: #000;
}



.centered-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* UI MATCHING USER SCREENSHOT */
.status-bar-spacer {
    height: 40px;
    width: 100%;
}

.time-display {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.time-main {
    font-size: 72px;
    font-weight: 300;
    /* Thinner font */
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
    font-family: 'Outfit', sans-serif;
}

.time-sub {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
    font-weight: 600;
}

.bell-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.bell-ring-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 159, 10, 0.3);
    box-shadow: 0 0 30px rgba(255, 159, 10, 0.1);
}

.bell-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 159, 10, 0.15);
    /* Dark orange tint */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border: 1px solid rgba(255, 159, 10, 0.1);
}

.spacer {
    flex: 1;
}

.bottom-sheet {
    background: #1C1C1E;
    width: 92%;
    padding: 24px;
    border-radius: 28px;
    text-align: left;
    margin-bottom: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.bottom-sheet h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.bottom-sheet p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-stop {
    background: #FF453A;
    /* Red */
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3);
}

/* STORY CYCLE SECTION */
.story-cycle {
    background: var(--surface);
    padding: 100px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.story-header {
    margin-bottom: 80px;
}

.story-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.story-step {
    text-align: center;
    width: 250px;
}

.mini-phone {
    width: 200px;
    height: 400px;
    background: #000;
    border-radius: 36px;
    border: 8px solid #2b2b2b;
    margin: 0 auto 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.mini-phone .screen {
    padding: 10px;
}

.story-step h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.story-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Visual variations for steps */
.blur-ui {
    filter: blur(2px) grayscale(0.5);
    opacity: 0.7;
}

.step-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 48px;
    height: 48px;
}

/* HIGH FIDELITY APP REPLICATION */
.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #000;
    font-family: 'Outfit', sans-serif;
}

/* 1. TRIGGER SCREEN (Ringing) */
.time-display-real {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.time-real {
    font-size: 72px;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
}

.label-real {
    font-size: 14px;
    color: #98989E;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 8px;
}

.bell-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bell-circle-real {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 159, 10, 0.15);
    border: 1px solid rgba(255, 159, 10, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons matching React Native EXACTLY */
.btn-snooze-real {
    background-color: #FF9F0A;
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 159, 10, 0.3);
}

.btn-snooze-real span {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.sheet-real {
    background: #1C1C1E;
    padding: 24px;
    border-radius: 28px;
    margin-bottom: 10px;
}

.sheet-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.sheet-sub {
    font-size: 14px;
    color: #98989E;
    margin-bottom: 20px;
}

.btn-stop-real {
    background: #FF453A;
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3);
}

/* 2. WAIT SCREEN (Lock Screen Notification) */
.lock-time {
    text-align: center;
    margin-top: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lock-clock {
    font-size: 60px;
    font-weight: 500;
    line-height: 1;
}

.lock-date {
    font-size: 16px;
    color: #ddd;
    margin-top: 8px;
}

.notif-real {
    background: rgba(255, 255, 255, 0.15);
    /* Glassmorphism */
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 14px;
    margin-top: 40px;
}

.notif-top-real {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.app-icon-small {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
    margin-left: 8px;
    text-transform: uppercase;
}

.notif-content-real {
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
}

/* 3. WAKE CHECK SCREEN (Strict Hold) */
.check-header-real {
    align-items: center;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.check-label-real {
    font-size: 24px;
    font-weight: 600;
    color: #98989E;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.check-sub-real {
    font-size: 16px;
    color: #666;
    max-width: 200px;
    line-height: 1.4;
}

.timer-real {
    font-size: 96px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* STRICT BUTTON STYLE */
.btn-hold-real {
    height: 96px;
    background-color: #1C1C1E;
    /* surface elevated */
    border-radius: 32px;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-hold-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.btn-hold-sub {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-top: 4px;
    z-index: 2;
}

.timer-label {
    margin-top: 20px;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
}

.notification-banner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    margin-top: 60px;
    padding: 12px;
    border-radius: 12px;
    text-align: left;
}

.notif-top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #ccc;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.notif-body {
    font-size: 12px;
    line-height: 1.3;
    color: #eee;
}

.notif-body strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

/* ANIMATIONS */
@keyframes hold-fill-anim {
    0% {
        width: 0%;
        opacity: 0.5;
    }

    50% {
        width: 50%;
        opacity: 0.8;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

.hold-fill-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    width: 0%;
    /* animation: hold-fill-anim 3s infinite linear; */
    z-index: 1;
}

/* 4. RECOVERY SCREEN (Red Overlay) */
.screen-recovery {
    position: relative;
    background: #000;
}

.recovery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 69, 58, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(255, 69, 58, 0.4) 100%);
    z-index: 0;
}

/* TODAY SCREEN (REAL) */
.today-header-real {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 50px;
}

.today-title-real {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.today-icon {
    color: var(--accent);
}

.alarm-card-real {
    background: #1C1C1E;
    border-radius: 20px;
    padding: 20px;
    margin: 0 16px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ac-left {
    display: flex;
    flex-direction: column;
}

.ac-highlight-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ac-time-real {
    font-size: 38px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.ac-ampm {
    font-size: 16px;
    font-weight: 400;
    color: #888;
}

.ac-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.ac-meta-text {
    font-size: 13px;
    color: #98989E;
}

.badge-mode-soft {
    background: rgba(48, 209, 88, 0.15);
    color: #30D158;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.ac-toggle-real {
    width: 51px;
    height: 31px;
    background: #5E5CE6;
    /* Active Purple */
    border-radius: 30px;
    position: relative;
    /* transition: background 0.3s; */
}

.ac-toggle-real::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 2px;
    width: 27px;
    height: 27px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Feature Mock Common */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #000;
    border-bottom: 1px solid #111;
}

.mock-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.mock-btn {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
}

.mock-content {
    padding: 16px;
    background: #000;
    flex: 1;
}

.input-box {
    background: #1C1C1E;
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 24px;
}

.section-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    margin-left: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.list-group {
    background: #1C1C1E;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.list-row {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2C2C2E;
}

.list-row:last-child {
    border-bottom: none;
}

.list-label {
    font-size: 16px;
    color: #fff;
}

.list-value {
    font-size: 16px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Day Bubbles (Recurring) */
.day-bubbles {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 4px;
}

.day-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2C2C2E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.day-bubble.active {
    background: var(--accent);
}

/* Sound Item (Wake Session) */
.sound-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.sound-item.active {
    background: var(--accent);
}

.sound-icon {
    margin-right: 12px;
    opacity: 0.8;
}

.sound-name {
    flex: 1;
    font-size: 16px;
    color: #fff;
    /* or text-secondary if not active */
}

.sound-lock {
    background: rgba(255, 159, 10, 0.2);
    color: #FF9F0A;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* SMALLER BUTTONS MODIFIER */
.btn-small-ctx {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.btn-small-ctx span {
    font-size: 16px;
}

.btn-small-ctx svg {
    width: 18px;
    height: 18px;
}

/* REFINED NOTIF */
.notif-real {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Modes Grid & New Sections */
.text-center {
    text-align: center;
}

.centered-desc {
    margin: 0 auto 60px auto;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.mode-card {
    background: var(--surface-elevated);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.mode-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.soft .mode-icon {
    background: rgba(48, 209, 88, 0.1);
    color: var(--success);
}

.medium .mode-icon {
    background: rgba(255, 159, 10, 0.1);
    color: var(--warning);
}

.strict .mode-icon {
    background: rgba(255, 69, 58, 0.1);
    color: var(--danger);
}

.mode-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.mode-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.badge-pro {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* Fake Picker Visual */
.feature-visual {
    position: relative;
}

/* Ensure relative */

.v-custom {
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-picker {
    width: 100%;
    text-align: center;
}

.picker-row {
    font-size: 24px;
    padding: 10px;
    color: var(--text-secondary);
}

.picker-row.active {
    font-size: 32px;
    color: var(--accent);
    font-weight: 700;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* Mobile Adjustments for New Grid */
@media (max-width: 768px) {
    .modes-grid {
        grid-template-columns: 1fr;
    }
}


/* Problem Section */
.problem {
    background: var(--surface);
    padding: 80px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.problem h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
}

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

.step-card {
    background: var(--surface-elevated);
    padding: 30px;
    border-radius: 24px;
    transition: transform 0.2s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Solution */
.solution {
    padding: 100px 0;
}

.section-tag {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

.solution h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 80px;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 60px;
}

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

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-visual {
    flex: 1;
    height: 300px;
    background: var(--surface-elevated);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.v-soft {
    background: radial-gradient(circle at center, #333 0%, #1c1c1e 100%);
    color: var(--success);
}

.v-check {
    background: radial-gradient(circle at center, #2c2c2e 0%, #151517 100%);
    color: var(--warning);
}

.v-recovery {
    background: radial-gradient(circle at center, #500 0%, #100 100%);
    color: var(--danger);
    animation: danger-pulse 2s infinite;
}

@keyframes danger-pulse {
    0% {
        background-color: #300;
    }

    50% {
        background-color: #500;
    }

    100% {
        background-color: #300;
    }
}

/* Features Grid */
.features {
    padding: 80px 0;
    text-align: center;
    background: var(--surface);
}

.features h2 {
    margin-bottom: 60px;
    font-size: 32px;
}

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

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.f-card {
    background: var(--bg);
    padding: 32px;
    border-radius: 24px;
    text-align: left;
    border: 1px solid #222;
}

.f-card i {
    margin-bottom: 20px;
    color: var(--accent);
}

.f-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.f-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
/* Footer */
footer {
    padding: 60px 0 30px;
    /* Reduced padding */
    text-align: center;
}

.footer-cta {
    margin-bottom: 40px;
    /* Reduced margin */
}

.footer-cta h2 {
    font-size: 40px;
    margin-bottom: 30px;
}

.footer-cta p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.copyright {
    color: #444;
    font-size: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .hero {
        padding-top: 100px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .feature-row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 80px;
    }

    .feature-visual {
        width: 100%;
        height: 250px;
    }

    .reverse {
        flex-direction: column;
    }
}

/* HERO REDESIGN */
.centered-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* HERO GRID & FLIP */
.hero-grid-3 {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.flip-container {
    perspective: 1000px;
    width: 240px;
    height: 480px;
    cursor: pointer;
}

.flipper {
    transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy flip */
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

/* Common styling for both sides */
.front,
.back {
    font-family: inherit;
    /* Ensure font inheritance */
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: #000;
    border: 10px solid #1c1c1e;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.front {
    z-index: 2;
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
    background: #111;
    /* Slightly lighter for contrast or keep black */
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

/* Back Content Styling */
.back h3 {
    font-size: 24px;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.back p {
    font-size: 16px;
    color: #888;
    line-height: 1.4;
}

.hero-mock-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floater-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    /* White as requested */
    text-align: left;
    line-height: 1.2;
    opacity: 0.8;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Hide old .phone-label if it exists */
/* .phone-label {
    display: none;
} */

/* SCALED UI ELEMENTS */
/* Reduce sizes by approx 15-20% */

.cah-time {
    font-size: 34px !important;
    /* Was 42 */
}

.cah-ampm {
    font-size: 14px !important;
}

.cah-toggle,
.cah-toggle.small {
    transform: scale(0.9);
    transform-origin: right center;
}

.cah-meta {
    font-size: 11px !important;
}

.list-item {
    padding: 10px 12px !important;
    gap: 10px !important;
}

.li-time {
    font-size: 15px !important;
    width: 60px !important;
}

.li-title {
    font-size: 14px !important;
}

.lc-time {
    font-size: 24px !important;
}

/* Was 28 */
.lc-title {
    font-size: 15px !important;
}

.lc-mid {
    font-size: 15px !important;
}

.lc-sub {
    font-size: 12px !important;
}

.screen {
    /* No border on screen itself since it's on .front now */
    border: none !important;
    border-radius: 30px !important;
    /* Inner radius matching container */
    background: transparent !important;
}

.mockup-bg {
    background: #000;
}

/* Hide external labels */
.floater-label,
.phone-label,
.hero-mock-group {
    display: contents !important;
    /* Unwrap */
}

.floater-label {
    display: none !important;
}


/* APP UI ELEMENTS */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-top: 40px;
    /* Space for status bar */
}

.app-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.app-content-scroll {
    flex: 1;
    overflow-y: hidden;
    /* static mock */
    padding: 10px 16px;
}

.tab-bar {
    height: 70px;
    background: rgba(28, 28, 30, 0.9);
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* CARDS */
.card-alarm-hero {
    background: #1C1C1E;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
}

.cah-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cah-time {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.cah-ampm {
    font-size: 16px;
    font-weight: 500;
    color: #888;
}

.cah-toggle {
    width: 48px;
    height: 28px;
    background: #5E5CE6;
    border-radius: 14px;
    position: relative;
}

.cah-toggle.small {
    width: 42px;
    height: 24px;
}

.toggle-knob {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    right: 2px;
    top: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cah-toggle.small .toggle-knob {
    width: 20px;
    height: 20px;
    right: 2px;
    top: 2px;
}

.cah-meta {
    font-size: 13px;
    color: #98989E;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-medium {
    background: rgba(255, 159, 10, 0.15);
    color: #FF9F0A;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.cah-sound {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* LIST ITEMS (Today View) */
.list-item {
    background: #1C1C1E;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.li-icon {
    width: 24px;
    display: flex;
    justify-content: center;
}

.li-time {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    width: 70px;
}

.li-ampm {
    font-size: 12px;
    color: #888;
}

.li-title {
    font-size: 16px;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LIST CARDS (One Shot / Recurring) */
.list-card {
    background: #1C1C1E;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 8px;
}

.lc-time-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.lc-time {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.lc-ampm {
    font-size: 14px;
    color: #888;
}

.lc-title {
    font-size: 16px;
    color: #fff;
    margin-left: 10px;
    font-weight: 600;
}

.lc-sub {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.lc-row-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lc-mid {
    flex: 1;
    text-align: right;
    color: #fff;
    font-weight: 600;
    margin-right: 12px;
}

.lc-left {
    display: flex;
    flex-direction: column;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .hero-grid-3 {
        flex-direction: column;
        align-items: center;
    }
}

/* STORY CYCLE UPDATE */
.story-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    /* Force single row */
    overflow-x: auto;
    /* Allow scroll on very small screens if needed */
    padding-bottom: 20px;
}

.story-step {
    flex: 0 0 240px;
    /* Fixed width matching mini-phones */
    text-align: center;
}

.btn-snooze-big {
    background: #FF9F0A;
    border-radius: 20px;
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 159, 10, 0.3);
}

.btn-stop-big {
    background: #FF453A;
    border-radius: 40px;
    /* Pill shape */
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 69, 58, 0.3);
}

.btn-hold-real-anim {
    background: #1C1C1E;
    border-radius: 25px;
    height: 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.hold-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
}

.hold-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #32D74B;
    /* Green fill */
    opacity: 0.5;
    animation: holdFill 3s infinite ease-in-out;
}

@keyframes holdFill {
    0% {
        height: 0%;
        opacity: 0.3;
    }

    50% {
        height: 60%;
        opacity: 0.6;
    }

    100% {
        height: 0%;
        opacity: 0.3;
    }
}

/* SETTINGS GROUPS VISUAL */
.settings-group-visual {
    width: 320px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.sg-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    margin-top: 20px;
    text-transform: uppercase;
    text-align: left;
    padding-left: 10px;
}

.sg-label:first-child {
    margin-top: 0;
}

.sg-card {
    background: #1C1C1E;
    border-radius: 12px;
    overflow: hidden;
}

.sg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #2C2C2E;
}

.sg-row:last-child {
    border-bottom: none;
}

.sg-left {
    color: #fff;
    font-size: 15px;
}

.sg-right {
    color: #888;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-bubbles {
    display: flex;
    gap: 4px;
}

.db-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
}

.db-item.active {
    background: #5E5CE6;
    color: #fff;
}

.db-item.inactive {
    background: #333;
    color: #888;
}

/* ADJUST APP HEADER for spacing */
.app-header {
    margin-top: 25px !important;
    /* Reduced from 40px */
}

.lc-mid,
.li-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TRIGGER PILL BUTTONS (Same Size Snooze/Stop) */
.btn-trigger-pill {
    height: 55px;
    width: 100%;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.btn-trigger-pill.orange {
    background: #FF9F0A;
    box-shadow: 0 5px 15px rgba(255, 159, 10, 0.3);
}

.btn-trigger-pill.red {
    background: #FF453A;
    box-shadow: 0 5px 15px rgba(255, 69, 58, 0.3);
}

/* PURPLE BADGE */
.badge-purple {
    background: rgba(94, 92, 230, 0.15);
    color: #5E5CE6;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

/* PURPLE THEME FOR SETTINGS GROUP */
.settings-group-visual.purple-theme .sg-label {
    color: #5E5CE6;
}

/* FIX TRUNCATION - Increase container sizes for alarm titles */
.lc-title,
.lc-mid,
.li-title {
    font-size: 13px !important;
    min-width: 0;
}

/* CENTER One-Shot and Recurring card titles */
.lc-time-row {
    justify-content: center !important;
    text-align: center;
}

.lc-title {
    text-align: center;
}

/* SMALLER TIMES FOR ONE-SHOT AND RECURRING (like Today list items) */
.list-card .lc-time {
    font-size: 18px !important;
}

.list-card .lc-ampm {
    font-size: 11px !important;
}

/* THREE VIEWS SECTION (Before Footer) */
.three-views-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.three-views-section h2 {
    color: #fff;
    margin-bottom: 10px;
}

.three-views-section .section-desc {
    margin-bottom: 30px;
}

/* REDUCED SECTION SPACING */
section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.hero {
    padding-bottom: 40px !important;
}

footer {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
}

/* REDUCE SPACE BETWEEN SECTION-TAG AND PREVIOUS SECTION */
.section-tag {
    margin-top: 0 !important;
    display: inline-block;
    /* Ensure it behaves correctly for centering */
}

.three-views-section {
    padding-top: 80px !important;
    /* Increased to fix cut-off */
}

/* SECTION HEADERS CLOSER TOGETHER */
.story-header,
.text-center h2 {
    margin-top: 0 !important;
}

.section-desc {
    text-align: center !important;
    margin-bottom: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- NEW ADDITIONS FOR MOBILE CAROUSEL & WAITLIST --- */

/* Waitlist Embed - Dark mode override if needed (though iframe handles most) */
#beta-access {
    scroll-margin-top: 80px;
    /* Smooth scroll offset */
}

/* Mobile Story Swipe */
@media (max-width: 768px) {
    .story-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 16px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 30px;
        /* Space for scrollbar if visible or touch */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .story-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .story-step {
        flex: 0 0 85vw;
        width: 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
        margin: 0;
    }
}

/* Tap Hint */
.tap-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    /* Ensure text color is secondary */
    opacity: 0.8;
    margin-bottom: 50px;
    /* Increased margin for better separation */
    margin-top: -10px;
    /* Pull up closer to description */
}