/*
  Clothesline website — colors match the app's Pacific Northwest palette
  (AppPalette.swift). Light and dark follow the visitor's device setting.
*/

/* Plus Jakarta Sans (SIL Open Font License), hosted on this site: no outside requests. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page: #E3ECF3;
  --card: #F4F8FB;
  --raised: #D5E2EC;
  --hairline: #BDCFDB;
  --text: #1B2228;
  --secondary: #3E4851;
  --accent: #2E5642;
  --on-accent: #F4F8FB;
  --item: #FFFFFF;

  /* Item border colors (default styles in the app) */
  --normal: #90BB19;
  --important: #EFB300;
  --urgent: #EF6300;
  --both: #EF1000;

  --radius: 18px;
  --max: 1040px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #12181C;
    --card: #1A2126;
    --raised: #242D33;
    --hairline: #323C43;
    --text: #E8EEF2;
    --secondary: #C2CDD5;
    --accent: #8AC96B;
    --on-accent: #12181C;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 19.55px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

/* Header: 40% larger than the original 64px bar. */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 27px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

/* The logo, twice its original 34px, with the name centered beside it. */
.brand img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 21px;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border: none;
}

.button.secondary {
  background: var(--raised);
  color: var(--text);
}

.badge-soon {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* The app icon, twice its original 96px, with the name centered beside it. */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.hero-icon {
  width: 192px;
  height: 192px;
  border-radius: 42px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.14);
}

.hero-name {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  font-size: 23px;
  color: var(--secondary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* A sketch of the app's list, built in HTML */
.phone {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 36px;
  padding: 26px 18px 22px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.12);
  max-width: 360px;
  margin-left: auto;
}

.phone h3 {
  margin: 0 4px 2px;
  font-size: 30px;
}

.phone .sub {
  margin: 0 4px 16px;
  color: var(--secondary);
  font-size: 14px;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--item);
  color: #1B2228;
  border: 1.5px solid color-mix(in srgb, var(--normal) 45%, transparent);
  padding: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.item.important { border: 2.8px solid color-mix(in srgb, var(--important) 70%, transparent); }
.item.urgent { border: 2.8px solid color-mix(in srgb, var(--urgent) 70%, transparent); }
.item.both { border: 4.5px solid color-mix(in srgb, var(--both) 70%, transparent); }

.item .flag {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.item.important .flag { background: rgb(239 179 0 / 0.16); color: #B88A00; }
.item.urgent .flag { background: rgb(239 99 0 / 0.14); color: var(--urgent); }
.item.both .flag { background: rgb(239 16 0 / 0.12); color: var(--both); }

.item small {
  display: block;
  font-weight: 500;
  color: #3E4851;
  font-size: 12px;
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.section-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0 0 32px;
  color: var(--secondary);
  max-width: 640px;
  font-size: 20.7px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--secondary);
}

.card .icon {
  font-size: 26px;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 800;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 28px;
}

.price {
  font-size: 44px;
  font-weight: 800;
  margin: 4px 0;
}

.price span {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
}

.muted { color: var(--secondary); }

.band {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.center { text-align: center; }

.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.faq-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.faq-group { margin-bottom: 40px; scroll-margin-top: 110px; }

.faq-group h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

details {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  margin-bottom: 10px;
  scroll-margin-top: 110px;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
}

details[open] summary::after { content: "–"; }

.answer {
  padding: 0 20px 20px;
  color: var(--secondary);
}

.answer p { margin: 0 0 12px; }

.answer p:last-child { margin-bottom: 0; }

.answer ol,
.answer ul { margin: 0 0 12px; padding-left: 22px; }

/*
  Short how-to videos. Screen recordings from an iPhone are tall, so
  the video is shown in a phone-shaped frame.
*/
.faq-video {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  margin: 16px 0 4px;
  border-radius: 28px;
  border: 6px solid var(--raised);
  background: #000;
  object-fit: cover;
}

.faq-video.wide {
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 28px;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.legal h1 { font-size: 40px; }

.legal h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.legal p,
.legal li { color: var(--secondary); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 40px;
  color: var(--secondary);
  font-size: 17.25px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--secondary);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero .wrap,
  .split { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-header .wrap { height: 72px; gap: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 46px; height: 46px; border-radius: 11px; }
  .nav { gap: 10px; }
  .nav a { font-size: 15px; }
  .lang-switch { font-size: 14px; }
  .lang-switch { max-width: 118px; text-overflow: ellipsis; }
  .nav .hide-small { display: none; }
}

/* ---------- Language menu ---------- */

.lang-switch {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  color: var(--secondary);
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233E4851' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
}

.lang-note {
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 16px;
}

/* Korean: Plus Jakarta Sans has no Hangul, so Korean text uses the
   device's Korean font; Latin letters stay in Plus Jakarta Sans. */
html[lang="ko"] {
  --font: "Plus Jakarta Sans", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", system-ui, sans-serif;
}

html[lang="ko"] body { word-break: keep-all; }

@media (max-width: 820px) {
  .lang-switch { font-size: 14px; padding: 5px 26px 5px 10px; }
}

@media (max-width: 820px) {
  .hero-brand { gap: 16px; }
  .hero-icon { width: 120px; height: 120px; border-radius: 27px; }
  .hero-name { font-size: 32px; }
}
