/*
Theme Name: Clocknico
Theme URI: https://clocknico.com
Author: ALFICOM
Author URI: https://alficom.com
Description: Marketing and store theme for Clocknico, in the ALFICOM visual style.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: clocknico
*/

:root {
    --deep: #130322;
    --purple: #390c68;
    --purple-2: #4b108a;
    --indigo: #332e97;
    --violet: #4f2e94;
    --navy: #031b8e;
    --blue: #0035ff;
    --blue-2: #0845fb;
    --white: #ffffff;
    --text-dim: rgba(255, 255, 255, .7);
    --text-faint: rgba(255, 255, 255, .5);
    --line: rgba(255, 255, 255, .12);
    --paper: #ffffff;
    --ink: #1b1530;
    --ink-dim: #5b5670;
    --radius: 14px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--indigo);
    background: linear-gradient(150deg, var(--indigo) 0%, var(--violet) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 96px; display: flex; align-items: center;
    transition: background .3s ease-in, height .3s ease-in, box-shadow .3s;
}
.site-header.scrolled, body:not(.home) .site-header { background: rgba(19, 3, 34, .92); backdrop-filter: blur(8px); height: 76px; box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: 6px; font-size: 20px; text-transform: uppercase; }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo small { display: block; font-size: 9px; letter-spacing: 3px; font-weight: 400; color: var(--text-faint); margin-top: -2px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); transition: color .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--white); }
.main-nav .nav-cta a { color: var(--white); border: 2px solid var(--blue-2); border-radius: 999px; padding: 8px 20px; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--blue-2); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: .2s; }

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .main-nav { position: fixed; inset: 76px 0 auto 0; background: var(--deep); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .main-nav.open { max-height: 80vh; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 24px; }
    .main-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
    .site-header { height: 76px; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer;
    border: 2px solid var(--blue-2); color: var(--white); background: transparent; transition: background .15s, transform .15s, color .15s;
}
.btn:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-solid { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 30px rgba(0, 53, 255, .35); }
.btn-solid:hover { background: var(--blue-2); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); color: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; top: 0; right: 0; width: 52%; height: 88%;
    background: var(--navy); opacity: .55; z-index: 0;
}
.hero::after {
    content: ""; position: absolute; top: 12%; right: 6%; width: 38vw; height: 38vw; max-width: 560px; max-height: 560px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0,53,255,.45) 0%, rgba(0,53,255,0) 70%); z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }
.eyebrow b { color: var(--blue-2); font-weight: 700; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0 0 24px; font-weight: 800; text-transform: uppercase; letter-spacing: -1px; }
.hero h1 .light { font-weight: 300; opacity: .55; display: block; }
.hero h1 .blue { color: var(--blue-2); }
.hero p.lead { font-size: 19px; font-weight: 300; color: var(--text-dim); max-width: 560px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* app mockup */
.mockup { background: #f5f7fa; color: #1f2937; border-radius: 16px; box-shadow: 0 40px 80px rgba(8, 0, 30, .55); overflow: hidden; font-size: 13px; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
.mockup-bar { display: flex; gap: 6px; padding: 12px 14px; background: #111827; }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #374151; }
.mockup-bar span:nth-child(1) { background: #ef4444; } .mockup-bar span:nth-child(2) { background: #f59e0b; } .mockup-bar span:nth-child(3) { background: #10b981; }
.mockup-body { padding: 16px; }
.mock-timer { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; padding: 12px 14px; }
.mock-timer .d { flex: 1; font-weight: 500; }
.mock-timer .p { color: #2563eb; font-weight: 600; white-space: nowrap; }
.mock-timer .t { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-timer .stop { background: #dc2626; color: #fff; border-radius: 6px; padding: 6px 12px; font-weight: 600; }
.mock-day { margin-top: 12px; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; overflow: hidden; }
.mock-day .h { display: flex; justify-content: space-between; padding: 8px 14px; background: #fafbfc; border-bottom: 1px solid #e3e8ef; font-weight: 600; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #eef1f5; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-row .n { flex: 1; } .mock-row .n small { display: block; color: #6b7280; }
.mock-row .v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.dark { background: var(--deep); background: linear-gradient(180deg, var(--deep) 0%, var(--purple) 55%, var(--purple-2) 100%); }
.section.black { background: #000; }
.section-title { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 60px; }
.section-title h2 { margin: 0; font-size: clamp(44px, 7.5vw, 80px); line-height: 1; text-transform: uppercase; opacity: .5; font-weight: 300; }
.section-title h2 b { font-weight: 800; }
.section-title .section-subtitle { margin-left: -35px; font-size: 24px; font-weight: 300; position: relative; }
@media (max-width: 760px) {
    .section { padding: 80px 0; }
    .section-title { display: block; }
    .section-title .section-subtitle { margin-left: 0; display: block; margin-top: 10px; font-size: 19px; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); transition: border-color .2s, transform .2s, background .2s; }
.feature:hover { border-color: var(--blue-2); transform: translateY(-3px); background: rgba(8,69,251,.08); }
.feature .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: rgba(8,69,251,.18); color: #7d9bff; margin-bottom: 20px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.feature p { margin: 0; color: var(--text-dim); font-weight: 300; font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* highlight band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.band h3 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 20px; text-transform: uppercase; font-weight: 800; }
.band h3 span { color: var(--blue-2); }
.band p { color: var(--text-dim); font-weight: 300; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding: 8px 0 8px 34px; position: relative; color: var(--text-dim); }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-box { padding: 30px; border-radius: var(--radius); background: rgba(3,27,142,.45); border: 1px solid var(--line); }
.stat-box b { display: block; font-size: 40px; font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-box span { color: var(--text-dim); font-size: 14px; font-weight: 300; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; gap: 40px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue-2); }
.step h3 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 1px; font-size: 18px; }
.step p { margin: 0; color: var(--text-dim); font-weight: 300; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.billing-switch { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 40px; }
.billing-switch button { font-family: inherit; background: none; border: 0; color: var(--text-dim); padding: 10px 22px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.billing-switch button.active { background: var(--blue); color: var(--white); }
.billing-switch .save { color: #7dffb0; font-size: 11px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
.plan { padding: 40px 36px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.035); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue-2); background: linear-gradient(160deg, rgba(8,69,251,.22), rgba(3,27,142,.35)); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 36px; background: var(--blue); padding: 3px 14px; border-radius: 999px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.plan h3 { margin: 0; text-transform: uppercase; letter-spacing: 3px; font-size: 15px; color: var(--text-dim); }
.plan .price { font-size: 56px; font-weight: 800; line-height: 1; margin: 18px 0 6px; }
.plan .price small { font-size: 16px; font-weight: 400; color: var(--text-dim); }
.plan .per { color: var(--text-faint); font-size: 14px; min-height: 22px; }
.plan .checks { flex: 1; margin-bottom: 30px; }
.plan form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan label.users { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.plan input[type=number] { width: 84px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--white); font: inherit; font-weight: 600; }
.plan .btn { flex: 1; }
.plan .total { width: 100%; font-size: 13px; color: var(--text-faint); margin-top: 6px; }
[data-cycle="yearly"] .is-monthly, [data-cycle="monthly"] .is-yearly { display: none !important; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 300; color: var(--blue-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--text-dim); font-weight: 300; }

/* CTA / contact band (alficom "Don't be shy") */
.cta { background: #000; padding: 90px 0; text-align: center; }
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: 5px; color: var(--blue-2); font-weight: 400; margin: 0 0 30px; text-transform: none; }
.cta h2 span { color: var(--white); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: #000; border-top: 1px solid rgba(255,255,255,.08); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: var(--text-faint); font-size: 14px; font-weight: 300; max-width: 320px; }
.copyright { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.copyright span { color: var(--white); font-weight: 600; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- inner pages (legal, WooCommerce): white paper on the gradient ---------- */
.page-hero { padding: 150px 0 50px; }
.page-hero h1 { margin: 0; font-size: clamp(36px, 5.5vw, 64px); text-transform: uppercase; font-weight: 300; opacity: .6; line-height: 1.05; }
.page-hero h1 b { font-weight: 800; }
.paper { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 48px; margin-bottom: 100px; box-shadow: 0 30px 60px rgba(8, 0, 30, .35); }
.paper a { color: var(--blue); }
.paper h2, .paper h3 { color: var(--ink); }
.paper p, .paper li { color: #3a3550; }
@media (max-width: 760px) { .paper { padding: 26px 20px; } .container { padding: 0 20px; } }

/* WooCommerce inside paper */
.paper .woocommerce, .paper .wp-block-woocommerce-cart, .paper .wp-block-woocommerce-checkout { font-family: "Montserrat", system-ui, sans-serif; }
.paper .button, .paper button.button, .paper .wc-block-components-button:not(.is-link), .paper .woocommerce a.button, .paper .woocommerce button.button, .paper input[type=submit] {
    background: var(--blue) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important;
    padding: 14px 28px !important; font-weight: 600 !important; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px !important;
}
.paper .button:hover, .paper .wc-block-components-button:not(.is-link):hover { background: var(--blue-2) !important; }
.paper .woocommerce-message, .paper .woocommerce-info { border-top-color: var(--blue); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--purple-2); font-weight: 700; }
.woocommerce-breadcrumb { display: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid #eee; }
