/* Tinh Website — Quiet Craft Design System */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors */
    --tinh-orange: #e08e45;
    --tinh-orange-hover: #d17a35;
    --tinh-focus-green: #436436;
    --tinh-light-green: #cfffb3;
    --tinh-dark: #1e1e24;
    --tinh-white: #ffffff;
    --tinh-error: #e85f5c;

    /* Neutrals */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;

    /* Spacing (8px grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Motion (Quiet Craft timing curves) */
    --ease-settle: cubic-bezier(0.25, 0.1, 0.25, 1.0);
    --ease-growth: cubic-bezier(0.0, 0.0, 0.2, 1.0);
    --ease-weight: cubic-bezier(0.4, 0.0, 0.0, 1.0);

    /* Layout */
    --max-width: 1120px;
    --max-width-narrow: 640px;
    --max-width-medium: 800px;
    --header-height: 64px;
    --border-radius-button: 8px;
    --border-radius-card: 12px;

    /* Surfaces */
    --surface: #ffffff;
    --surface-alt: #fafafa;

    /* Type scale (modular ~1.25, base 17px) */
    --text-xs: 13px;
    --text-sm: 15px;
    --text-base: 17px;
    --text-lg: 20px;
    --text-xl: 25px;
    --text-2xl: 31px;
    --text-3xl: 39px;
    --text-4xl: 49px;
    --font-weight-bold: 700;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(30,30,36,0.06), 0 1px 3px rgba(30,30,36,0.10);
    --shadow-md: 0 4px 12px rgba(30,30,36,0.08), 0 2px 4px rgba(30,30,36,0.06);
    --shadow-lg: 0 16px 40px rgba(30,30,36,0.12), 0 4px 12px rgba(30,30,36,0.08);
}


/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--tinh-dark);
    background: var(--tinh-white);
    min-height: 100vh;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

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


/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

.text-muted {
    color: var(--gray-500);
}

.text-small {
    font-size: 0.875rem;
}


/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.container--medium {
    max-width: var(--max-width-medium);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--sm {
    padding: var(--space-3xl) 0;
}

.section + .section {
    border-top: 1px solid var(--gray-100);
}


/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--tinh-white);
    border-bottom: 1px solid var(--gray-100);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header__logo {
    height: 28px;
    width: auto;
    flex-shrink: 0;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.site-header__nav a {
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: color 200ms var(--ease-settle);
}

.site-header__nav a:hover {
    color: var(--tinh-dark);
}

.site-header__nav a.active {
    color: var(--tinh-dark);
    font-weight: var(--font-weight-medium);
}

.site-header__nav a.nav-cta {
    position: relative;
    color: var(--tinh-orange);
    font-weight: var(--font-weight-semibold);
    padding: 6px 14px 6px 26px;
    border: 1.5px solid var(--tinh-orange);
    border-radius: 999px;
    transition: background 200ms var(--ease-settle), color 200ms var(--ease-settle), box-shadow 200ms var(--ease-settle), transform 200ms var(--ease-settle);
}

.site-header__nav a.nav-cta::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%) rotate(0deg);
    background:
        linear-gradient(to bottom, transparent 45%, var(--tinh-orange) 45%, var(--tinh-orange) 55%, transparent 55%),
        linear-gradient(to right, transparent 45%, var(--tinh-orange) 45%, var(--tinh-orange) 55%, transparent 55%);
    animation: nav-cta-sparkle 2.4s var(--ease-settle) infinite;
}

.site-header__nav a.nav-cta:hover {
    background: var(--tinh-orange);
    color: var(--tinh-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 142, 69, 0.3);
}

.site-header__nav a.nav-cta:hover::before {
    background:
        linear-gradient(to bottom, transparent 45%, var(--tinh-white) 45%, var(--tinh-white) 55%, transparent 55%),
        linear-gradient(to right, transparent 45%, var(--tinh-white) 45%, var(--tinh-white) 55%, transparent 55%);
}

.site-header__nav a.nav-cta.active {
    color: var(--tinh-white);
    background: var(--tinh-orange);
}

.site-header__nav a.nav-cta.active::before {
    background:
        linear-gradient(to bottom, transparent 45%, var(--tinh-white) 45%, var(--tinh-white) 55%, transparent 55%),
        linear-gradient(to right, transparent 45%, var(--tinh-white) 45%, var(--tinh-white) 55%, transparent 55%);
}

@keyframes nav-cta-sparkle {
    0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); opacity: 0.9; }
    50% { transform: translateY(-50%) rotate(90deg) scale(1.3); opacity: 1; }
}

.site-header__cta {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--tinh-dark);
    margin: 4px 0;
    transition: transform 200ms var(--ease-settle);
}


/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    transition: all 200ms var(--ease-settle);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--tinh-orange);
    color: var(--tinh-dark);
    border-color: var(--tinh-orange);
}

.btn--primary:hover {
    background: var(--tinh-orange-hover);
    border-color: var(--tinh-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 142, 69, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(224, 142, 69, 0.2);
}

.btn--primary:focus-visible {
    outline: 3px solid var(--tinh-focus-green);
    outline-offset: 2px;
}

.btn--secondary {
    background: transparent;
    color: var(--tinh-focus-green);
    border-color: var(--tinh-focus-green);
}

.btn--secondary:hover {
    background: rgba(67, 100, 54, 0.05);
    transform: translateY(-1px);
}

.btn--secondary:active {
    transform: translateY(0);
}

.btn--secondary:focus-visible {
    outline: 3px solid var(--tinh-focus-green);
    outline-offset: 2px;
}

.btn--sm {
    font-size: 0.875rem;
    padding: 8px 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ===== FORMS ===== */
.form-field {
    margin-bottom: var(--space-lg);
}

.form-field:last-of-type {
    margin-bottom: var(--space-xl);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--tinh-dark);
    border-radius: var(--border-radius-button);
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    font-size: 1rem;
    color: var(--tinh-dark);
    background: var(--tinh-white);
    transition: border-color 200ms var(--ease-settle);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--tinh-light-green);
    outline: 2px solid var(--tinh-focus-green);
    outline-offset: 1px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23737373' d='M10.862.452L6.31 5.004 1.758.452c-.24-.24-.63-.24-.87 0s-.24.63 0 .87l5 5c.12.12.277.18.432.18s.31-.06.432-.18l5-5c.24-.24.24-.63 0-.87s-.63-.24-.87 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-message {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--border-radius-button);
    font-size: 0.9rem;
}

.form-message--success {
    background: rgba(207, 255, 179, 0.15);
    color: var(--tinh-focus-green);
    border: 1px solid var(--tinh-light-green);
}

.form-message--error {
    background: rgba(232, 95, 92, 0.08);
    color: var(--tinh-error);
    border: 1px solid rgba(232, 95, 92, 0.3);
}


/* ===== HERO ===== */
.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.hero__showcase {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-3xl);
    align-items: center;
    text-align: left;
}

.hero__showcase-text h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.hero__showcase-text p {
    color: var(--gray-500);
    line-height: 1.7;
}

.hero__showcase-text p + p {
    margin-top: var(--space-md);
}

.hero__banner {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--gray-500);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-button);
    margin-bottom: var(--space-xl);
}

.hero__screenshot {
    position: relative;
    height: 576px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__screenshot video {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
}

.hero__unmute {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 0.85rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease;
}

.hero__unmute:hover {
    background: rgba(0, 0, 0, 0.78);
}

.hero__unmute svg {
    display: block;
    flex-shrink: 0;
}

.hero__unmute .hero__unmute-on {
    display: none;
}

.hero__unmute.is-on .hero__unmute-muted {
    display: none;
}

.hero__unmute.is-on .hero__unmute-on {
    display: block;
}

.hero__unmute.is-on .hero__unmute-label {
    display: none;
}

.hero__screenshot--placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        var(--gray-50, #fafafa),
        var(--gray-50, #fafafa) 12px,
        var(--gray-100, #f0f0f0) 12px,
        var(--gray-100, #f0f0f0) 24px
    );
    color: var(--gray-500, #888);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__caption {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: var(--space-sm);
    text-align: left;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== HOW IT WORKS ===== */
.steps {
    counter-reset: step;
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-3xl) 0;
}

.step + .step {
    border-top: 1px solid var(--gray-100);
}

.step__content {
    max-width: 440px;
}

.step__number {
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    color: var(--tinh-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.step__content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.step__content p {
    color: var(--gray-500);
    line-height: 1.7;
}

.step__image,
.feature-row__media {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.step__image--phone img,
.step__image--phone video,
.feature-row__media--phone img,
.feature-row__media--phone video {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
}

.step__image--wide img,
.step__image--wide video,
.feature-row__media--wide img,
.feature-row__media--wide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .step__image,
    .feature-row__media {
        height: 380px;
    }
}

.step:nth-child(even) {
    direction: rtl;
}

.step:nth-child(even) > * {
    direction: ltr;
}


/* ===== FEATURES ===== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-3xl) 0;
}

.feature-row + .feature-row {
    border-top: 1px solid var(--gray-100);
}

.feature-row__content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.feature-row__content p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* feature-row__media styling shared with .step__image above */

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) > * {
    direction: ltr;
}


/* ===== PRIVACY SECTION ===== */
.privacy-block {
    max-width: var(--max-width-medium);
    margin: 0 auto;
}

.privacy-block h2 {
    margin-bottom: var(--space-lg);
}

.privacy-block > p {
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.privacy-list {
    list-style: none;
}

.privacy-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--gray-600);
    line-height: 1.6;
}

.privacy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--tinh-focus-green);
}


/* ===== SIGNUP / CTA SECTION ===== */
.cta-section {
    text-align: center;
    background: var(--gray-50);
}

.cta-section h2 {
    margin-bottom: var(--space-sm);
}

.cta-section > p {
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

.signup-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.signup-form .btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: var(--space-sm);
}

.cta-section--page {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.cta-section--page h1 {
    margin-bottom: var(--space-md);
}

.early-access__lede {
    max-width: 560px;
    margin: 0 auto var(--space-2xl);
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.55;
}

.signup-note {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: var(--space-lg);
    text-align: center;
}


/* ===== FAQ ===== */
.faq {
    max-width: var(--max-width-medium);
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.faq-item {
    padding: var(--space-lg) 0;
}

.faq-item + .faq-item {
    border-top: 1px solid var(--gray-100);
}

.faq-item h3 {
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-medium);
}

.faq-item p {
    color: var(--gray-500);
    line-height: 1.7;
}


/* ===== FOOTER ===== */
.site-footer {
    background: var(--tinh-dark);
    color: var(--tinh-white);
    padding: var(--space-2xl) 0;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
}

.site-footer__nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 200ms var(--ease-settle);
}

.site-footer__nav a:hover {
    color: var(--tinh-light-green);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.site-footer__links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 200ms var(--ease-settle);
}

.site-footer__links a:hover {
    color: var(--tinh-light-green);
}

.site-footer__copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.site-footer__contact {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__contact a {
    color: var(--tinh-light-green);
}


/* ===== CONTENT PAGES (articles, legal) ===== */
.page-header {
    padding: var(--space-3xl) 0 var(--space-xl);
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--gray-500);
}

.page-content {
    max-width: var(--max-width-medium);
    margin: 0 auto;
    padding-bottom: var(--space-4xl);
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.page-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.page-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    color: var(--gray-600);
}

.page-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.page-content a {
    color: var(--tinh-focus-green);
    text-decoration: underline;
    text-decoration-color: var(--tinh-light-green);
    text-underline-offset: 2px;
}

.page-content a:hover {
    text-decoration-color: var(--tinh-focus-green);
}


/* ===== SCREENSHOT/MEDIA CONTAINERS ===== */
.media-frame {
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.media-frame img,
.media-frame video {
    width: 100%;
    display: block;
}

.media-frame--rounded {
    border-radius: var(--border-radius-card);
}


/* ===== UTILITY ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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


/* ===== EYEBROW LABEL ===== */
.eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tinh-focus-green);
    margin-bottom: var(--space-md);
}


/* ===== DEVICE FRAMES ===== */
/* iPhone frame — for true full-screen phone screenshots (9:19.5) */
.device-iphone {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    background: var(--tinh-dark);
    border-radius: 44px;
    padding: 11px;
    box-shadow: var(--shadow-lg);
}

.device-iphone::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 25px;
    background: var(--tinh-dark);
    border-radius: 999px;
    z-index: 2;
}

.device-iphone__screen {
    border-radius: 33px;
    overflow: hidden;
    background: #000;
    display: block;
}

.device-iphone__screen img,
.device-iphone__screen video {
    width: 100%;
    display: block;
}

/* Window frame — for wide/panel screenshots (analytics, corrections) */
.device-panel {
    width: 100%;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.device-panel__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 var(--space-md);
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.device-panel__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gray-300);
}

.device-panel__screen img,
.device-panel__screen video {
    width: 100%;
    display: block;
}

/* Device frames placed inside steps / feature rows */
.media-framed {
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-framed .device-iphone {
    max-width: 250px;
}

.media-framed .device-panel {
    width: 100%;
    max-width: 440px;
}

.media-framed .device-panel--tall {
    max-width: 300px;
}


/* ===== LANDING HERO ===== */
.lp-hero {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.lp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: var(--space-4xl);
    align-items: center;
}

.lp-hero__title {
    font-size: clamp(34px, 5.5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.lp-hero__title .kicker {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--tinh-orange);
    margin-top: var(--space-md);
}

.lp-hero__sub {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.5;
    max-width: 38ch;
    margin-bottom: var(--space-xl);
}

.lp-hero__visual {
    display: flex;
    justify-content: center;
}

/* Hero CTA left-aligned in the grid (overrides the centered .hero__actions) */
.lp-hero .hero__actions {
    justify-content: flex-start;
    margin-bottom: var(--space-md);
}

/* Hero demo video: clean elevated frame (it is already real phone footage,
   so no drawn bezel — just rounded corners and a shadow for consistency) */
.video-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-frame video {
    width: 100%;
    display: block;
}

.trust-line {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-md);
    line-height: 1.5;
}

/* Form on the landing hero — full width of its column, not centered card */
.lp-form {
    max-width: 420px;
}

.lp-form__title {
    font-size: var(--text-lg);
    line-height: 1.4;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.lp-form__title strong {
    font-weight: var(--font-weight-semibold);
    color: var(--tinh-dark);
}

.lp-form .form-field {
    margin-bottom: var(--space-md);
}

.lp-form .btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: var(--space-xs);
    font-size: var(--text-base);
}

.field-note {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: calc(var(--space-xs) * -1);
    margin-bottom: var(--space-md);
}


/* ===== TRUST STRIP ===== */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-2xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
}

.trust-strip__item::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--tinh-focus-green);
    border-radius: 50%;
    flex-shrink: 0;
}


/* ===== PROOF POINTS ===== */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}

.proof {
    text-align: left;
}

.proof__media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 420px;
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.proof__media .device-iphone {
    max-width: 195px;
}

.proof__media .device-panel {
    width: 100%;
}

/* Tall panel shots (portrait UI) get capped width so they fit the media height */
.proof__media .device-panel--tall {
    max-width: 300px;
}

.proof h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.proof p {
    color: var(--gray-600);
    line-height: 1.6;
}


/* ===== FOUNDER NOTE ===== */
.founder {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.founder__note {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--tinh-dark);
}

.founder__note p + p {
    margin-top: var(--space-md);
}

.founder__sign {
    margin-top: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--gray-500);
}


/* ===== SLIM HEADER (landing) ===== */
.site-header--slim .site-header__nav-min {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.site-header--slim .site-header__nav-min a:hover {
    color: var(--tinh-dark);
}


/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 450ms var(--ease-settle), transform 450ms var(--ease-settle);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    /* Landing hero mobile: stack, copy + form first, visual after */
    .lp-hero {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .lp-hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .lp-hero__visual {
        order: 2;
    }

    .lp-form {
        max-width: 100%;
    }

    .lp-hero__sub {
        font-size: var(--text-base);
        max-width: 100%;
    }

    .proof-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .proof__media {
        height: auto;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Header mobile */
    .site-header__nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--tinh-white);
        border-bottom: 1px solid var(--gray-100);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .site-header__nav.is-open {
        display: flex;
    }

    .site-header__cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hero mobile */
    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Steps / features mobile */
    .step,
    .feature-row,
    .hero__showcase {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: left;
    }

    .step:nth-child(even),
    .feature-row:nth-child(even) {
        direction: ltr;
    }

    .step__content {
        max-width: 100%;
    }

    /* Section spacing mobile */
    .section {
        padding: var(--space-3xl) 0;
    }

    .section--sm {
        padding: var(--space-2xl) 0;
    }

    /* Form mobile */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
    }

    /* Footer mobile */
    .site-footer__nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
}


/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 100ms !important;
    }
}
