@charset "utf-8";

/* ============================================================================
   Tier 1 of 4 — design tokens

   Every value the other three tiers use is declared here and nowhere else.
   A project that wants a different look changes tokens, not rules: nothing
   below this file hard-codes a colour, a size or a duration.

   Ownership: user-owned. The generator writes this file only when it is
   absent, so a project's own token values survive regeneration; the
   design-tokens command updates only its marked Figma block. Project
   overrides can also go in site.css, which loads last.

   The scale is deliberately plain: a neutral greyscale, one accent, a
   webfont with system fallbacks, and a spacing ladder. It is meant to be replaced, not
   admired.

   The root is 62.5% (1rem = 10px). Fluid sizes interpolate from 250px to
   393px, where they reach the design maximum. 393px is the 우리아이 자립펀드
   Figma frame width: the owner asked for the screens to match the mockups
   on a phone (O-26). design-tokens --apply still writes 760px numbers inside
   the FIGMA-TOKENS block; the 393px override after that block wins and
   survives it. The smallest design font is 12px (minimum 10px); all other
   font minima use the same 10/12 ratio. Spacing minima use 250/393.
   Padding tokens alone have a 10px positive floor; explicit zero stays
   zero. Values pin outside the viewport range.
   Token source: design/figma-all.css (curated from 개발자료/figma.css).
   ========================================================================= */

/* Pretendard: Copyright (c) 2021 Kil Hyung-jin, SIL Open Font License 1.1.
 * License: https://github.com/orioncactus/pretendard/blob/v1.3.9/LICENSE */
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Bold.woff2') format('woff2');
}
/* Cafe24 Ssurround: https://fonts.cafe24.com/
 * Figma uses it at weight 700 only. The file has one weight, so it is
 * declared for 400 and 700: a 700 request then uses the real glyphs instead
 * of a synthesised (faux) bold. (design-system.md §2.3, 00-consolidated C10) */
@font-face {
    font-family: 'Cafe24 Ssurround';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff') format('woff');
}
@font-face {
    font-family: 'Cafe24 Ssurround';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff') format('woff');
}
/* Freesentation 7 Bold: only the FAQ "Q." / "A." marks (home). unicode-range
 * limits it to Q, A and the full stop, so other text never downloads it.
 * (O-25, design-system.md §2.2: jsDelivr 200, CORS *) */
@font-face {
    font-family: 'Freesentation';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-7Bold.woff2') format('woff2');
    unicode-range: U+002E, U+0041, U+0051;
}

html {
    font-size: 62.5%;
}

:root {
    /* ---- safe area -----------------------------------------------------
       The four insets a notch, a Dynamic Island, a display cutout or a home
       indicator carves out of the viewport. Declared once here so no rule
       below ever writes a raw env() call, and so a rule can compose an inset
       with its own spacing: calc(2rem + var(--safe-bottom)).

       The 0px fallback matters. On a desktop browser, an Android phone
       without a cutout, or any engine that does not implement env(), all
       four resolve to 0px and every calc() above collapses to the design's
       original value. Safe area support is therefore additive: it can only
       add space where the device actually takes some away.

       These read as 0px unless the page also carries viewport-fit=cover in
       its viewport meta. The generated page shell emits that; a hand-written
       page that does not will see zeros. */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);

    /* ---- layout -------------------------------------------------------
       The page frame: reading width and screen gutter of every .inner.
       These are template defaults, not design values. A Figma file whose
       sections carry different side paddings or widths does not change
       them, and neither does design-tokens --apply: do not point them at a
       --figma-* token, and do not override them per section in site.css.

       Gutter: 16px from a 393px phone width up, scaling down to 10.18px at
       250px. This range is its own on purpose; it is not the 250-760px
       interpolation the type and spacing scales use. */
    --inner-max-width: 96rem;
    --inner-padding-x: clamp(10.1781px, calc(0px + 4.0712vw), 16px);
    --header-height: 5.6rem;
    --footer-height: 5.6rem;
    /* Header bars (App_CustomHeader): logo 29px / back icon 24px plus
       --padding-sm above and below = 53px / 48px at 393px (Figma frames
       98 = 44 status bar + 53 + 1, 93 = 44 + 48 + 1). */
    --app-header-logo-height: 2.9rem;
    --app-header-icon-size: 2.4rem;
    /* Fixed bottom navigation (App_CustomHeader): 61px item + 4px pill
       padding above and below = 69px. The gap under the pill is
       max(--safe-bottom, --bottom-nav-gap) (00-consolidated C8 / O-27). */
    --bottom-nav-item-height: 6.1rem;
    --bottom-nav-height: calc(var(--bottom-nav-item-height) + 2 * var(--space-4));
    --bottom-nav-gap: 1.2rem;
    --bottom-nav-reserve: calc(var(--bottom-nav-height) + max(var(--safe-bottom), var(--bottom-nav-gap)));
    /* Fixed bottom CTA (.app-fixed-cta): 50px button + 12px above + 16px
       below. Pages add it to their own bottom reserve only while a CTA shows. */
    --app-cta-height: calc(5rem + var(--space-sm) + var(--space-md));

    /* ---- font family --------------------------------------------------
       Webfonts above load from version-pinned CDN sources with swap.
       Offline, the system fallbacks still work.
       Design (figma.css): Pretendard for body text, Cafe24 Ssurround 700
       for the logo, section titles, step questions and big numbers,
       Freesentation 700 for the FAQ "Q." / "A." marks only.
       The generated FIGMA-TOKENS block redefines --font-base with only
       system-ui as fallback, so the full stack is restated after the block. */
    --font-base: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --font-display: 'Cafe24 Ssurround', var(--font-base);
    --font-mark: 'Freesentation', var(--font-base);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
        'Liberation Mono', monospace;

    /* ---- font size -----------------------------------------------------
       Mapped to the generated Figma scale. The numbers follow source order
       of design/figma-all.css: re-check them after any new --apply.
       All reach the design px at 393px (override after the block). */
    --fs-caption: var(--figma-font-size-3);    /* 12px */
    --fs-body: var(--figma-font-size-1);       /* 14px */
    --fs-label: var(--figma-font-size-2);      /* 16px */
    --fs-lead: var(--figma-font-size-6);       /* 18px, news detail title */
    --fs-question: var(--figma-font-size-5);   /* 20px, step questions */
    --fs-title: var(--figma-font-size-4);      /* 22px, intro/result titles, banner */
    --fs-page-title: var(--figma-font-size-4); /* 22px (common.css h1) */
    --fs-hero: var(--figma-font-size-4);       /* 22px, no larger type in the design */

    /* ---- font weight --------------------------------------------------- */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ---- line height ---------------------------------------------------
       Figma uses 130% / 140% / 150%. Unitless so children with a different
       font size inherit a ratio. */
    --lh-none: 1.1;
    --lh-tight: 1.3;
    --lh-snug: 1.4;
    --lh-body: 1.5;
    --lh-relaxed: 1.7;

    /* ---- letter spacing ------------------------------------------------ */
    --ls-normal: 0;
    --ls-tight: var(--figma-letter-spacing-1); /* -0.02em */
    --ls-wide: 0.02em;

    /* ---- spacing -------------------------------------------------------
       Design maximum at 393px, minimum = size x 250/393 at 250px, in rem.
       No 10px floor: use these for paddings under 10px (4px pill, 8px
       answer box, 4px 8px table head, 2px 8px 2px 12px banner button). */
    --space-2: clamp(0.12723rem, calc(0rem + 0.50891vw), 0.2rem);
    --space-4: clamp(0.25445rem, calc(0rem + 1.01781vw), 0.4rem);
    --space-5: clamp(0.31807rem, calc(0rem + 1.27226vw), 0.5rem);
    --space-xs: clamp(0.50891rem, calc(0rem + 2.03562vw), 0.8rem);
    --space-10: clamp(0.63613rem, calc(0rem + 2.54453vw), 1rem);
    --space-sm: clamp(0.76336rem, calc(0rem + 3.05344vw), 1.2rem);
    --space-md: clamp(1.01781rem, calc(0rem + 4.07125vw), 1.6rem);
    --space-lg: clamp(1.52672rem, calc(0rem + 6.10687vw), 2.4rem);
    --space-xl: clamp(2.03562rem, calc(0rem + 8.14249vw), 3.2rem);
    --space-2xl: clamp(3.05344rem, calc(0rem + 12.21374vw), 4.8rem);
    --space-3xl: clamp(4.07125rem, calc(0rem + 16.28499vw), 6.4rem);

    /* Padding is separate: positive values have a 10px floor. */
    --padding-2: 1rem;
    --padding-4: 1rem;
    --padding-xs: 1rem;
    --padding-sm: clamp(1rem, calc(0.65035rem + 1.3986vw), 1.2rem);
    --padding-md: clamp(1.01781rem, calc(0rem + 4.07125vw), 1.6rem);
    --padding-lg: clamp(1.52672rem, calc(0rem + 6.10687vw), 2.4rem);
    --padding-xl: clamp(2.03562rem, calc(0rem + 8.14249vw), 3.2rem);
    --padding-2xl: clamp(3.05344rem, calc(0rem + 12.21374vw), 4.8rem);
    --padding-3xl: clamp(4.07125rem, calc(0rem + 16.28499vw), 6.4rem);

    /* ---- radius -------------------------------------------------------- */
    --radius-sm: var(--figma-radius-3);    /* 5px: buttons, radio cards, answer box, result box */
    --radius-md: var(--figma-radius-2);    /* 8px: cards, inputs, check list */
    --radius-lg: var(--figma-radius-2);    /* 8px: nav items (inactive) */
    --radius-pill: 999rem;                 /* Figma 1000px / 10000px */

    /* ---- border and shadow --------------------------------------------- */
    --size-hairline: 1px;
    --shadow-header: var(--figma-shadow-1);  /* 0 4px 5px rgba(60,60,60,.06) */
    --shadow-card: var(--figma-shadow-2);    /* 1px 2px 6px rgba(0,0,0,.12), home shortcuts */
    --shadow-raised: var(--figma-shadow-3);  /* 0 0 10px rgba(0,0,0,.25), dropdown */

    /* ---- motion --------------------------------------------------------
       common.css turns these to 0s under prefers-reduced-motion, so a rule
       that uses the token never has to ask the question itself. */
    --duration-fast: 120ms;
    --duration-base: 200ms;
    --easing-standard: cubic-bezier(0.2, 0, 0, 1);

    /* ---- layering ------------------------------------------------------ */
    --z-base: 0;
    --z-sticky: 100;
    --z-header: 200;
    --z-overlay: 300;

    /* ---- colour --------------------------------------------------------
       우리아이 자립펀드 Figma palette (library style names), kept behind the
       framework's semantic names. Literal values on purpose: single-use
       styles (error, warning, nav glass) never reach the generated block.
       The template's orange --figma-primary-* scale is gone. */
    --figma-main-1: #e9f6f6;
    --figma-main-2: #b2dfdb;
    --figma-main-3: #4db6ac;
    --figma-main-4: #26a69a;
    --figma-main-5: #03776c;
    --figma-gray-100: #f8f8f8;
    --figma-gray-300: #e1e1e1;
    --figma-gray-500: #9e9e9e;
    --figma-gray-600: #5e5e5e;
    --figma-basic: #222222;
    --figma-error: #ff5757;      /* System/Error: 미충족 */
    --figma-warning: #ff9857;    /* unnamed: 모르겠어요 */
    --figma-icon: #1f1f1f;       /* 뒤로가기 vector */

    --color-bg: #ffffff;
    --color-bg-muted: var(--figma-gray-100);     /* home, news detail page */
    --color-bg-soft: var(--figma-main-1);        /* intro/result body, cards, table head */
    --color-bg-card: #ffffff;
    --color-bg-disabled: var(--figma-gray-500);  /* disabled button (#9E9E9E) */

    --color-text: var(--figma-basic);
    --color-text-sub: var(--figma-gray-600);
    --color-text-mute: var(--figma-gray-500);
    --color-text-disabled: var(--figma-gray-500);
    --color-text-accent: var(--figma-main-5);
    --color-text-invert: #ffffff;
    --color-icon: var(--figma-icon);

    --color-primary: var(--figma-main-4);        /* buttons, active nav, checks */
    --color-primary-strong: var(--figma-main-5); /* titles, banner button, dropdown selection */
    --color-primary-soft: var(--figma-main-1);
    --color-primary-tint: var(--figma-main-2);   /* home shortcut border */
    --color-primary-light: var(--figma-main-3);  /* progress fill, result summary border */
    --color-danger: var(--figma-error);
    --color-danger-soft: #ffe9e9;
    --color-warning: var(--figma-warning);

    --color-line: var(--figma-gray-300);
    --color-line-strong: var(--figma-gray-300);
    --color-focus: var(--figma-main-4);
    --color-scrim: rgba(0, 0, 0, 0.45);
    --color-nav-glass: rgba(233, 246, 246, 0.4); /* bottom-nav pill, main/1 at 40% */
    --color-splash-top: #d2f2ef;                  /* splash gradient (Figma) */
    --color-splash-bottom: #f5fffe;
}

/* >>> FIGMA-TOKENS:generated >>> */
/*
 * Token candidates extracted from Figma-exported CSS.
 * Source: figma-all.css
 * Fluid viewport: 250px to 760px. Design values are maxima.
 * Font minima use one ratio; positive padding has a 10px floor.
 *
 * Absolute coordinates, element dimensions and one-off offsets were
 * intentionally omitted. Rename neutral candidates after visual review
 * (for example --color-1 to --color-primary) before using them widely.
 */


:root {
    /* figma color */
    --figma-color-1: #222222;
    --figma-color-2: #f8f8f8;
    --figma-color-3: #5e5e5e;
    --figma-color-4: #9e9e9e;
    --figma-color-5: #ffffff;
    --figma-color-6: #e1e1e1;
    --figma-color-7: #26a69a;
    --figma-color-8: #03776c;
    --figma-color-9: #e9f6f6;
    --figma-color-10: #4db6ac;
    --figma-color-11: rgba(0, 0, 0, 0.2);

    /* figma font family */
    --figma-font-family-1: 'Pretendard';
    --figma-font-family-2: 'Cafe24 Ssurround';
    --figma-font-family-3: 'Freesentation';

    /* figma font size */
    --figma-font-size-1: clamp(11.6667px, calc(10.5229px + 0.4575vw), 14px);
    --figma-font-size-2: clamp(13.3333px, calc(12.0261px + 0.5229vw), 16px);
    --figma-font-size-3: clamp(10px, calc(9.0196px + 0.3922vw), 12px);
    --figma-font-size-4: clamp(18.3333px, calc(16.5359px + 0.719vw), 22px);
    --figma-font-size-5: clamp(16.6667px, calc(15.0327px + 0.6536vw), 20px);
    --figma-font-size-6: clamp(15px, calc(13.5294px + 0.5882vw), 18px);

    /* figma font weight */
    --figma-font-weight-1: 400;
    --figma-font-weight-2: 700;
    --figma-font-weight-3: 500;
    --figma-font-weight-4: 600;

    /* figma line height */
    --figma-line-height-1: 150%;
    --figma-line-height-2: 130%;
    --figma-line-height-3: 140%;

    /* figma letter spacing */
    --figma-letter-spacing-1: -0.02em;

    /* figma space */
    --figma-space-1: clamp(3.9474px, calc(0px + 1.5789vw), 12px);
    --figma-space-2: clamp(5.2632px, calc(0px + 2.1053vw), 16px);
    --figma-space-3: clamp(3.2895px, calc(0px + 1.3158vw), 10px);
    --figma-space-4: clamp(0.6579px, calc(0px + 0.2632vw), 2px);
    --figma-space-5: clamp(2.6316px, calc(0px + 1.0526vw), 8px);
    --figma-space-6: clamp(1.3158px, calc(0px + 0.5263vw), 4px);
    --figma-space-7: clamp(7.8947px, calc(0px + 3.1579vw), 24px);
    --figma-space-8: clamp(15.7895px, calc(0px + 6.3158vw), 48px);
    --figma-space-9: clamp(10.5263px, calc(0px + 4.2105vw), 32px);
    --figma-space-10: clamp(21.0526px, calc(0px + 8.4211vw), 64px);
    --figma-space-11: clamp(1.6447px, calc(0px + 0.6579vw), 5px);

    /* figma padding */
    --figma-padding-1: clamp(10px, calc(9.0196px + 0.3922vw), 12px);
    --figma-padding-2: clamp(10px, calc(7.0588px + 1.1765vw), 16px);
    --figma-padding-3: 10px;
    --figma-padding-4: 10px;
    --figma-padding-5: clamp(10px, calc(3.1373px + 2.7451vw), 24px);
    --figma-padding-6: 10px;
    --figma-padding-7: 10px;
    --figma-padding-8: clamp(15.7895px, calc(0px + 6.3158vw), 48px);
    --figma-padding-9: 10px;

    /* figma radius */
    --figma-radius-1: 1000px;
    --figma-radius-2: 8px;
    --figma-radius-3: 5px;

    /* figma shadow */
    --figma-shadow-1: 0px 4px 5px rgba(60, 60, 60, 0.06);
    --figma-shadow-2: 1px 2px 6px rgba(0, 0, 0, 0.12);
    --figma-shadow-3: 0px 0px 10px rgba(0, 0, 0, 0.25);
    --figma-shadow-4: inset 2.375px 2.375px 9.5px rgba(0, 0, 0, 0.2);
    --figma-shadow-5: inset 1px 1px 4px rgba(0, 0, 0, 0.2);

    --font-base: var(--figma-font-family-1), system-ui, sans-serif;
}
/* <<< FIGMA-TOKENS:generated */

/* ---- 393px design frame and project overrides ----------------------------
   The fluid values of the block above, recomputed with the same formula
   (Cli_DesignTokens::fluidValue) but reaching the design maximum at 393px,
   the Figma frame width, instead of 760px (owner decision O-26, as in the
   reference app 83set). Font minima = size x 10/12, spacing minima = size x
   250/393, padding floor 10px. Written in rem so a visitor's larger browser
   font enlarges text and spacing too. Kept outside the generated block so
   design-tokens --apply cannot undo it; after a new --apply, re-check the
   numbering and recompute any token whose design value changed.
   Non-fluid values (10px paddings) are not repeated here. */
:root {
    --font-base: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

    --figma-font-size-1: clamp(1.16667rem, calc(0.75874rem + 1.6317vw), 1.4rem);   /* 14 */
    --figma-font-size-2: clamp(1.33333rem, calc(0.86713rem + 1.8648vw), 1.6rem);   /* 16 */
    --figma-font-size-3: clamp(1rem, calc(0.65035rem + 1.3986vw), 1.2rem);         /* 12 */
    --figma-font-size-4: clamp(1.83333rem, calc(1.19231rem + 2.5641vw), 2.2rem);   /* 22 */
    --figma-font-size-5: clamp(1.66667rem, calc(1.08392rem + 2.331vw), 2rem);      /* 20 */
    --figma-font-size-6: clamp(1.5rem, calc(0.97552rem + 2.0979vw), 1.8rem);       /* 18 */

    --figma-space-1: clamp(0.76336rem, calc(0rem + 3.05344vw), 1.2rem);    /* 12 */
    --figma-space-2: clamp(1.01781rem, calc(0rem + 4.07125vw), 1.6rem);    /* 16 */
    --figma-space-3: clamp(0.63613rem, calc(0rem + 2.54453vw), 1rem);      /* 10 */
    --figma-space-4: clamp(0.12723rem, calc(0rem + 0.50891vw), 0.2rem);    /* 2 */
    --figma-space-5: clamp(0.50891rem, calc(0rem + 2.03562vw), 0.8rem);    /* 8 */
    --figma-space-6: clamp(0.25445rem, calc(0rem + 1.01781vw), 0.4rem);    /* 4 */
    --figma-space-7: clamp(1.52672rem, calc(0rem + 6.10687vw), 2.4rem);    /* 24 */
    --figma-space-8: clamp(3.05344rem, calc(0rem + 12.21374vw), 4.8rem);   /* 48 */
    --figma-space-9: clamp(2.03562rem, calc(0rem + 8.14249vw), 3.2rem);    /* 32 */
    --figma-space-10: clamp(4.07125rem, calc(0rem + 16.28499vw), 6.4rem);  /* 64 */
    --figma-space-11: clamp(0.31807rem, calc(0rem + 1.27226vw), 0.5rem);   /* 5 */

    --figma-padding-1: clamp(1rem, calc(0.65035rem + 1.3986vw), 1.2rem);       /* 12 */
    --figma-padding-2: clamp(1.01781rem, calc(0rem + 4.07125vw), 1.6rem);      /* 16 */
    --figma-padding-5: clamp(1.52672rem, calc(0rem + 6.10687vw), 2.4rem);      /* 24 */
    --figma-padding-8: clamp(3.05344rem, calc(0rem + 12.21374vw), 4.8rem);     /* 48 */
}
