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

:root {
    --fg: #000000;
    --fg2: #2b2c30;
    --fg3: #888a90;
    --border: #d8d8d8;
    --bg: #fff;
    --bg2: #f3f3f3;
    --accent: #ffaa4d;
    --r: 6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout ---- */
.wrap {
    max-width: 580px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrap.wide {
    max-width: 620px;
}

.sec {
    padding: 80px 0;
}

.sec + .sec {
    border-top: 1px solid var(--border);
}

/* ---- Typography ---- */
h1 {
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.03em;
    color: var(--fg);
}

h1 em {
    font-style: italic;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

h2 {
    font-family: 'Departure Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    color: var(--fg);
}

.muted {
    color: var(--fg3);
    font-size: 15px;
    line-height: 24px;
}

.sec-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--fg);
}

/* ---- Logo ---- */
.logo {
    font-family: 'Departure Mono', monospace;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 8px 20px;
    font-family: 'Departure Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    border-radius: 11px;
    text-decoration: none;
    transition: opacity 0.15s;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.7;
}

.btn-outline {
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--fg);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* ---- Hero ---- */
.hero {
    padding: 80px 0 0;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-left {
    padding-top: 40px;
    padding-bottom: 80px;
}

.hero-sub {
    margin-top: 12px;
}

/* ---- Skills Grid ---- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 60px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-icon {
    margin-bottom: 4px;
}

.skill-item strong {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--fg2);
}

.skill-desc {
    font-size: 13px;
    line-height: 24px;
}

/* ---- Tabs ---- */
.tabs {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 24px;
}

.tab {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #171719;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
    opacity: 0.4;
}

.tab:hover {
    opacity: 0.7;
}

.tab.active {
    opacity: 1;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fg);
    border-radius: 1px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-intro {
    margin-bottom: 24px;
}

/* ---- Sprint Calendar ---- */
.cal-container {
    border: 1px solid #ebebec;
    border-radius: 16px;
    padding: 20px;
}

.cal {
    margin-top: 0;
}

.cal-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 12px 1fr 1fr 1fr 1fr 1fr 12px 1fr 1fr;
    margin-bottom: 6px;
}

.cal-header span {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--fg);
    padding: 0;
}

.cal-header .dim {
    color: transparent;
}

.cal-body {
    display: grid;
    grid-template-columns: 3fr 12px 5fr 12px 2fr;
    min-height: 160px;
}

.phase {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    border-radius: 9px;
}

.phase-gap {
    /* weekend gap */
}

.phase-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--fg);
    text-align: center;
    line-height: 1.5;
}

/* ---- Pricing (inside tab) ---- */
.price-block {
    margin-top: 0;
}

.price-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.price-amount {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.price-per {
    font-size: 15px;
    color: var(--fg3);
}

/* Custom slider */
.slider-wrap {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    cursor: pointer;
}

.slider-track {
    width: 100%;
    height: 7px;
    background: #ebebec;
    position: relative;
    border-radius: 0;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 43%;
    background: var(--fg2);
    transition: width 0.05s;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 43%;
    width: 14px;
    height: 29px;
    background: var(--fg2);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: left 0.05s, box-shadow 0.2s;
    cursor: grab;
}

.slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

.slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 0 6px rgba(0,0,0,0.08);
}

/* Tiers (inside budget tab) */
.tiers {
    display: flex;
    gap: 0;
    padding-top: 24px;
}

.tier {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
    border-left: 1px solid var(--border);
    transition: opacity 0.2s;
    opacity: 0.4;
}

.tier:first-child {
    border-left: none;
    padding-left: 0;
}

.tier.active {
    opacity: 1;
}

.tier-range {
    font-family: 'Departure Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--fg3);
    letter-spacing: 0.02em;
}

.tier strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 19px;
}

.tier-ex {
    font-size: 13px;
    color: var(--fg3);
    line-height: 19px;
}

/* ---- Long-term Table ---- */
.lt-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lt-row {
    display: grid;
    grid-template-columns: 72px 9px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.lt-week {
    font-family: 'Departure Mono', monospace;
    font-size: 12px;
    color: var(--fg3);
}

.lt-dot {
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
}

.lt-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg2);
}

.lt-price {
    font-family: 'Departure Mono', monospace;
    font-size: 12px;
    color: var(--fg3);
    text-align: right;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tabs {
        gap: 16px;
    }

    .tab {
        font-size: 14px;
    }

    .tiers {
        flex-direction: column;
        gap: 16px;
    }

    .tier {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 12px 0 0;
    }

    .tier:first-child {
        border-top: none;
        padding-top: 0;
    }

}

@media (max-width: 480px) {
    html { font-size: 15px; }
    h1 { font-size: 19px; }
    .sec { padding: 56px 0; }
    .hero { padding: 56px 0 0; }
    .hero-ctas { flex-direction: column; gap: 8px; }
    .hero-ctas .btn { text-align: center; }
}
