/* Dear Self US design layer (2026-11-28, 대표님 "미국 에어비앤비 디자인 룰 그대로, 모든 것을 미국 스타일로").
   English pages only: build (scripts/en_host.py) adds class "us" to <html> and links this file last; shell.js does the same for shared pages
   (checkout, account) on the English address. Layout rules follow Airbnb-style product design: white canvas, #222 text, hairline borders,
   8px spacing grid, 16px body, 8px-radius buttons, 12px-radius cards, one strong action color (Dear Self purple). No Airbnb branding. */

html.us{
  --ink:#222222;--muted:#6a6a6a;--line:#dddddd;--hair:#ebebeb;--wash:#f7f7f7;--sand:#f7f7f7;
  --violet:#5b3fd6;--violet-soft:#f4f1ff;--btn:#5b3fd6;--btn-deep:#4a30c2;--btn-line:#222222;--paper:#fff;
  --r-btn:8px;--r-card:12px;--shadow-hover:0 6px 16px rgba(0,0,0,.12);
}
html.us body{color:var(--ink);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;background:#fff}

/* Type: tight, confident headings; comfortable body; nothing below 14px */
html.us :is(h1,h2,h3,h4){color:var(--ink);letter-spacing:-.02em}
html.us h1{font-weight:700;line-height:1.12}
html.us h2{font-weight:650;line-height:1.22}
html.us h3{font-weight:600;line-height:1.3;letter-spacing:-.01em}
html.us :is(p,li,dd){line-height:1.55}
html.us main :is(p,li){max-width:72ch}
html.us main :is(.tl-grid3,.st-grid,.ah-how,.tl-trust,.tl-steps,.st-plans,.sp-plans,.tl-chips,.tl-facts,.dy-emotions,.st-wf-steps) li{max-width:none}
html.us :is(small,.dy-small,.tl-fine,.tl-small,.co-note,.co-alt,.st-plan-note,.st-only,.tl-card-meta,.dy-help,.dy-saved,.dy-copy-count,.em-included){font-size:14px!important;line-height:1.5}
html.us :is(.co-note,.co-alt,.tl-fine,.tl-small,.st-plan-note,.tl-card-meta,.dy-small,.dy-help){color:var(--muted)!important}
html.us :is(.kind,.tl-kicker,.tl-eyebrow span,.st-eye,.sp-eye,.co-step){letter-spacing:0;text-transform:none}
html.us a{text-underline-offset:3px}

/* Header: white with a hairline, nothing heavier */
html.us .gx-bar{border-bottom:1px solid var(--hair);background:#fff}
html.us .gx-aud{background:#fff;border-bottom:1px solid var(--hair)}
html.us .gx-nav a{color:var(--ink);font-weight:500}

/* Buttons: 8px radius, 48px tall, one solid primary, outlined secondary */
html.us :is(.button,.st-btn,.tl-btn,.sp-buy,.co-care-big){border-radius:var(--r-btn)!important;font-weight:600!important;font-size:16px!important;min-height:48px;padding:12px 24px!important;letter-spacing:0!important;box-shadow:none!important;line-height:1.25;transform:none!important}
html.us :is(.button,.st-btn,.tl-btn,.sp-buy):not(.ghost):not(.light):not(.danger){background:var(--btn)!important;border:1px solid var(--btn)!important;color:#fff!important;background-image:none!important}
html.us :is(.button,.st-btn,.tl-btn,.sp-buy):not(.ghost):not(.light):not(.danger):hover{background:var(--btn-deep)!important;border-color:var(--btn-deep)!important}
html.us :is(.button.ghost,.st-btn.ghost,.st-btn.light,.tl-btn.light){background:#fff!important;border:1px solid var(--ink)!important;color:var(--ink)!important;background-image:none!important}
html.us :is(.button.ghost,.st-btn.ghost,.st-btn.light,.tl-btn.light):hover{background:var(--wash)!important}
html.us .tl-btn.big,html.us .button.big{min-height:56px;font-size:17px!important}
html.us :is(.button,.st-btn,.tl-btn):focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Cards: 12px radius, hairline, no resting shadow; lift on hover only when the card is a link */
html.us :is(.tl-card,.tl-shot,.tl-buy,.tl-offer,.tl-basis,.st-plan,.st-cmp,.st-set,.st-more-card,.sp-plan,.co-card,.ah-how>li,.dy-fb-card,.dy-month-cta,.login-card,.dy-review,.tl-toc,.co-care-card,.jr-step){border-radius:var(--r-card)!important;border:1px solid var(--line)!important;box-shadow:none!important;background-color:#fff}
html.us a:is(.tl-card,.st-cmp,.st-more-card,.st-card):hover{box-shadow:var(--shadow-hover)!important;transform:none!important}
html.us :is(.st-plan.rec,.ah-how>li.rec,.sp-plan.rec){border:2px solid var(--ink)!important}
html.us :is(.st-badge,.sp-badge,.tl-tag,.ah-how em){background:var(--ink)!important;color:#fff!important;border-radius:6px!important;font-weight:600;font-size:12px;letter-spacing:0}

/* Heroes: content-first on white instead of the purple wash */
html.us .ds-purple{background:#fff!important;color:var(--ink)!important;border-radius:0!important;border-bottom:1px solid var(--hair)}
html.us .ds-purple :is(h1,h2,p,.ah-hero-lead,.sp-lead,.sp-eye){color:var(--ink)!important}
html.us .ds-purple :is(p,.ah-hero-lead,.sp-lead){color:#3f3f3f!important}
html.us .ds-purple .ah-pill{background:var(--violet-soft)!important;color:var(--violet)!important}
html.us .ds-purple a.button:not(.ghost){background:var(--btn)!important;color:#fff!important;border:1px solid var(--btn)!important}
html.us .ds-purple a.button.ghost{background:#fff!important;color:var(--ink)!important;border:1px solid var(--ink)!important}
html.us :is(.tl-hero){background:#fff!important}

/* Section rhythm on an 8px grid */
html.us :is(.tl-s,.st-sec,.ah-sec){padding-top:56px;padding-bottom:56px}
html.us :is(.tl-gray,.tl-tint){background:var(--wash)!important}
html.us :is(.tl-band){background:#fff!important;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
html.us hr{border:0;border-top:1px solid var(--hair)}

/* Prices read first */
html.us :is(.ah-price,.st-plan-price,.co-price,.tl-buy-price b,.sp-price){color:var(--ink)!important;font-weight:700;letter-spacing:-.02em}

/* Forms: 48px fields, dark focus ring */
html.us :is(input[type=text],input[type=email],input:not([type]),textarea,select){border:1px solid #b0b0b0;border-radius:8px;font-size:16px;color:var(--ink)}
html.us :is(input,textarea,select):focus{outline:2px solid var(--ink);outline-offset:0;border-color:var(--ink)}

/* Footer: quiet and readable */
html.us :is(.school-foot,.st-foot,.legal-foot) :is(p,small,a){color:var(--muted)!important}
html.us .seo-dir li a{color:var(--ink)}

@media (max-width:744px){
  html.us :is(.tl-s,.st-sec,.ah-sec){padding-top:40px;padding-bottom:40px}
  html.us h1{letter-spacing:-.015em}
}

/* Plans stack on phones and tablets: one card per row, offers side by side only when there is room */
@media (max-width:900px){
  html.us :is(.st-plans,.st-plans.three,.sp-plans){display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
  html.us .st-plan{max-width:none!important;width:auto!important}
}
@media (max-width:480px){
  html.us .st-plan-offers{grid-template-columns:1fr!important}
}

/* Teacher's Guide page: white hero like the rest of the English site */
html.us .gd-hero{background:#fff!important;border-bottom:1px solid var(--hair)}
html.us .gd :is(h1,h2){color:var(--ink)}

/* ===== 2026-11-28 v2: one system for every audience + readability (대표님 "선생님 자료 페이지 일관성, 가독성") ===== */
/* Same accent everywhere: teacher pages used three other purples */
html.us{--v:#5b3fd6;--v2:#4a30c2;--pw-ink:#222}
html.us[data-world=pro] .ds-purple{background:#fff!important}
/* Teacher & counselor heroes look like every other hero: white, one-color headline, same scale */
html.us :is(.fp-hero,.tc-hero,.gd-hero){background:#fff!important;border-bottom:1px solid var(--hair)}
html.us :is(.fp-hero,.tc-hero,.gd-hero) h1{font-size:clamp(34px,5vw,56px)!important;line-height:1.1!important;font-weight:700!important;letter-spacing:-.02em!important;color:var(--ink)!important}
html.us :is(.fp-hero,.tc-hero,.gd-hero) h1 *{color:var(--ink)!important}
html.us :is(.fp-hero,.tc-hero,.gd-hero) h1 + p{margin-top:16px}
/* Same buttons everywhere */
html.us :is(.fp-btn,.tc-btn,.gd-btn,.cp-btn,.cn-btn){border-radius:var(--r-btn)!important;min-height:52px;font-weight:600!important;font-size:17px!important;background:var(--btn)!important;border:1px solid var(--btn)!important;color:#fff!important;box-shadow:none!important}
html.us .tc-btn.dark{background:#fff!important;color:var(--ink)!important;border-color:var(--ink)!important}
html.us :is(.fp-btn,.tc-btn:not(.dark),.gd-btn):hover{background:var(--btn-deep)!important}

/* Readability: body copy 17px / 1.65 in a dark gray, captions never under 15px, no centered paragraphs past the hero */
html.us main :is(p,li,dd):not([class*="chip"]):not([class*="tag"]):not([class*="badge"]):not([class*="kicker"]):not([class*="eyebrow"]):not([class*="sample"]):not([class*="step-n"]){font-size:17px;line-height:1.65}
html.us main p:not([class*="fine"]):not([class*="note"]):not([class*="small"]):not([class*="meta"]){color:#333}
html.us main :is(small,.dy-small,.tl-fine,.tl-small,.co-note,.co-alt,.st-plan-note,.st-only,.tl-card-meta,.dy-help,.dy-saved,.dy-copy-count,.em-included,[class*="-fine"],[class*="-note"],[class*="-meta"]){font-size:15px!important;line-height:1.55}
html.us main :is(.tl-chips li,.tl-mini-trust li,[class*="chip"],[class*="badge"],[class*="kicker"],[class*="eyebrow"]){font-size:15px!important}
html.us main section:not(:first-of-type) p{text-align:left}
html.us main :is(.tl-h2c,.tl-lead-c,.st-sec>.st-head p,.sec-head p){text-align:center}
html.us main :is(h2){font-size:clamp(26px,3.2vw,36px)}
html.us main :is(h3){font-size:clamp(19px,2vw,22px)}
/* Card text inside dense grids stays readable without overflowing */
html.us main :is(.tl-card,.st-cmp,.st-more-card,.ah-how>li,.fp-card,.tc-card) :is(p,small){font-size:16px!important}

/* Checkout: auto-renewal terms and the consent box read clearly (2026-11-28) */
html.us .co-terms{margin:16px 0 8px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-card);font-size:16px!important;line-height:1.55;color:var(--ink)!important;background:#fff}
html.us .co-consent{display:flex;gap:10px;align-items:flex-start;margin:8px 0 16px;font-size:16px;line-height:1.5;color:var(--ink);cursor:pointer}
html.us .co-consent input{width:20px;height:20px;margin-top:2px;flex:none;accent-color:var(--btn)}
