/* Note26 site. One stylesheet for every page and language. */

:root {
  --ink: #1D1D1F;
  --text-2: #4A4A4F;
  --text-3: #6E6E73;
  --line: #E5E5E7;
  --line-2: #D2D2D7;
  --accent: #8E6A4E;        /* small brown text: app brown made darker to read on white (4.9:1) */
  --accent-hover: #7A5A41;
  --brown: #AC7F5E;         /* app systemBrown on iOS 26+ and Mac, light: buttons, selected date, checks, icons */
  --sunday: #DB4437;
  --progress: #2EA660;
  --today-ring: #B4B4B9;
  --bg: #FFFFFF;
  --rule: #1D1D1F;          /* the strong frame lines (demo, grid, column tops) */
  --btn: #AC7F5E;           /* filled buttons = app brown, white text like the app */
  --btn-hover: #9A7153;
  --link-hover: #6B4F3A;
  --year: #A1A1A6;
  --separator: rgba(60, 60, 67, 0.12);   /* UIColor.separator, light (iOS 27) */
  color-scheme: light dark;
}

/* Dark mode: our own colors, so phone browsers don't invert the page themselves.
   Same roles as the app's dark mode: black page, light text, brown stays brown. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F5F7;
    --text-2: #C7C7CC;
    --text-3: #98989D;
    --line: #2C2C2E;
    --line-2: #3A3A3C;
    --accent: #B78A66;      /* app systemBrown, dark (6.8:1 on black) */
    --accent-hover: #C79C78;
    --brown: #B78A66;
    --sunday: #FF6B5E;
    --progress: #30D158;
    --today-ring: #636366;
    --bg: #000000;
    --rule: #8E8E93;
    --btn: #B78A66;
    --btn-hover: #A67B59;
    --link-hover: #CFA684;
    --year: #8E8E93;
    --separator: rgba(84, 84, 88, 0.5);  /* UIColor.separator, dark */
  }
}

* { box-sizing: border-box; }
button, a { -webkit-tap-highlight-color: transparent; } /* no gray box on tap (phones) */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body, body:lang(ko) {
  font-family: Inter, "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--link-hover); }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus { outline: none; }

h1, h2, h3, p, li, th, td, figcaption { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sec { padding-bottom: 120px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; color: var(--bg); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--btn); color: #FFFFFF;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px;
}
.btn:hover { background: var(--btn-hover); color: #FFFFFF; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.more { padding: 14px 6px; font-size: 16px; font-weight: 500; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.home-link { display: flex; align-items: center; }
.home-link img { width: 48px; height: 48px; display: block; }
/* Logo tile like the app's paywall: corner = 1/4 of the side, 1px separator line inside the edge. */
.home-link img, .foot-brand img {
  border-radius: 25%;
  outline: 1px solid var(--separator); outline-offset: -1px;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .lang { color: var(--text-3); }

/* Section headings */
.label {
  margin: 0 0 40px;
  font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0.04em;
}
.title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.nb { display: inline-block; }
.sub { margin: 0 0 48px; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 64px; }
.kicker { margin: 0 0 20px; font-size: 14px; color: var(--text-3); letter-spacing: 0.02em; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em;
}
.lead { margin: 28px 0 0; max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }

/* Calendar demo: same sizes as the app (cell 57x35 r12, bar 48x5, gap 3) */
.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  border: 2px solid var(--rule); border-radius: 20px; overflow: hidden;
}
.cal { min-width: 0; padding: 32px 28px 28px; border-right: 1px solid var(--rule); }
.cal-head { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 24px; }
.cal-month { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.cal-year { font-size: 26px; font-weight: 500; color: var(--year); }
.week, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week { margin-bottom: 6px; }
.week span { text-align: center; font-size: 14px; font-weight: 500; }
.week span:first-child { color: var(--sunday); }
.day {
  background: none; border: 0; padding: 8px 0 10px; margin: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font: inherit; color: inherit; min-width: 0;
  container-type: inline-size;
}
.day .num {
  /* One shape on every screen, like the app on iPhone, iPad and Mac: 57 x 35, corner 12, number 16.
     When the cell is narrower, the whole box (number and corner too) shrinks together. */
  --k: min(1px, (100cqw - 4px) / 57);
  width: calc(57 * var(--k)); height: calc(35 * var(--k)); border-radius: calc(12 * var(--k));
  display: flex; align-items: center; justify-content: center;
  font-size: calc(16 * var(--k)); font-variant-numeric: tabular-nums;
}
.day.sun .num { color: var(--sunday); }
.day.today .num { box-shadow: inset 0 0 0 1.8px var(--today-ring); }
.day[aria-pressed="true"] .num { background: var(--brown); color: #FFFFFF; box-shadow: none; }
.day .bar { width: calc(48 * min(1px, (100cqw - 4px) / 57)); height: 5px; border-radius: 2.5px; overflow: hidden; display: flex; }
.day.has .bar { background: var(--today-ring); }
.day .fill { height: 100%; background: var(--progress); }

.note { min-width: 0; padding: 32px; display: flex; flex-direction: column; }
.note-kicker { margin: 0 0 4px; font-size: 13px; color: var(--text-3); }
.note-title { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.rows { flex: 1; min-height: 240px; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.chk {
  width: 32px; height: 32px; flex: none; margin-left: -6px; padding: 0;
  border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown);
}
.row input {
  flex: 1; min-width: 0; border: 0; padding: 4px 0;
  font: inherit; font-size: 16px; line-height: 1.6;
  background: transparent; color: var(--ink);
}
.row.done input { color: #8E8E93; text-decoration: line-through; }
.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.tool {
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--accent);
}
.hint { margin: 0; flex: 1 1 200px; font-size: 13px; line-height: 1.5; color: var(--text-3); }

@media (max-width: 900px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .note { order: -1; border-bottom: 1px solid var(--rule); }
  .cal { border-right: 0; }
}

/* Three columns with a rule on top (principles, roadmap) */
.cols { display: flex; flex-wrap: wrap; gap: 40px; }
.col { flex: 1 1 280px; border-top: 2px solid var(--rule); padding-top: 20px; }
.col-num { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.col h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.col-body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* Features grid */
.grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid > :last-child:nth-child(odd) { grid-column: auto; }
}
.cell { background: var(--bg); padding: 32px 28px 36px; }
.cell svg { display: block; margin-bottom: 20px; color: var(--brown); }
.cell h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.cell p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }

/* Devices: real device frames, white background, no shadows */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 20px; font-size: 15px; font-weight: 600; text-align: center; }
.shot-mac { margin: 0 auto 64px; max-width: 960px; }
.shot-mac figcaption { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 8px; padding: 3px 8px;
}
.cap-note { font-size: 14px; font-weight: 400; color: var(--text-3); }
.devs { display: grid; grid-template-columns: 1.305fr 0.483fr; gap: 48px; align-items: end; }
@media (max-width: 640px) {
  .devs { grid-template-columns: 1fr; }
  .devs .shot:last-child { width: 100%; max-width: 280px; margin: 0 auto; }
}

/* Pricing */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg);
}
.seg button {
  height: 36px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--ink);
}
.seg button[aria-pressed="true"] { background: var(--btn); color: #FFFFFF; }
.save { font-size: 12px; font-weight: 600; color: var(--accent); }
.seg button[aria-pressed="true"] .save { color: #FFFFFF; }
.plans { border: 1px solid var(--line-2); border-radius: 20px; padding: 28px 28px 8px; }
.plans table { width: 100%; border-collapse: collapse; font-size: 15px; }
.plans thead th { text-align: left; padding: 0 16px 20px; vertical-align: top; }
.plans thead th:first-child { padding-left: 0; font-weight: 500; color: var(--text-3); vertical-align: bottom; width: 44%; }
.plans thead th:nth-child(2) { width: 26%; }
.plans thead th:nth-child(3) { width: 30%; }
.plan-name { display: block; font-size: 22px; font-weight: 700; }
.price {
  display: block; margin-top: 10px;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.price-sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }
.trial { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.plans tbody tr { border-top: 1px solid var(--line); }
.plans tbody th { text-align: left; padding: 16px 16px 16px 0; font-weight: 500; }
.plans tbody td { padding: 16px; color: var(--text-3); }
.plans tbody td:last-child { color: var(--ink); font-weight: 600; }
.plans tbody svg { display: block; color: var(--brown); }
.plans-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 32px; }
.fine { margin: 0; flex: 1 1 280px; font-size: 13px; line-height: 1.5; color: var(--text-3); }

@media (max-width: 560px) {
  .plans { padding: 20px 16px 4px; }
  .plans table { font-size: 14px; }
  .plans thead th { padding: 0 8px 16px; }
  .plans thead th:first-child { width: 36%; }
  .plans thead th:nth-child(2) { width: 26%; }
  .plans thead th:nth-child(3) { width: 38%; }
  .plans tbody th { padding: 14px 8px 14px 0; }
  .plans tbody td { padding: 14px 8px; }
  .plan-name { font-size: 18px; }
  .price { font-size: 21px; }
  .price-sub, .trial { font-size: 13px; }
}

/* Roadmap summary on the home page */
.head-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.head-row .title { margin: 0; }
.head-row a { font-size: 15px; font-weight: 500; }
.stage { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.col.now { border-top-color: var(--accent); }
.col.now .stage { color: var(--accent); }
.col.later { border-top: 1px solid var(--line-2); padding-top: 21px; }
.col.later .stage { color: var(--text-3); }
.item { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.item-desc { margin: 0 0 20px; font-size: 15px; color: var(--text-3); line-height: 1.6; }
.item-desc:last-child { margin-bottom: 0; }

/* Roadmap page */
.page-hero { padding-top: 96px; padding-bottom: 64px; }
.page-hero h1 { margin: 0; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.page-hero p { margin: 20px 0 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.upcoming { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.upcoming > div { border-top: 2px solid var(--rule); padding-top: 18px; }
.upcoming .stage { margin-bottom: 14px; color: var(--text-2); }
.upcoming .now { border-top-color: var(--accent); }
.upcoming .now .stage { color: var(--accent); }
.upcoming h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.upcoming p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.year { margin-top: 48px; }
.year-num {
  margin: 0 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--rule);
  font-size: 44px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.release { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.release-meta { flex: 0 0 160px; }
.release-v { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.release-date { margin: 4px 0 0; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.release ul { flex: 1 1 400px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.release li { font-size: 16px; line-height: 1.55; display: flex; gap: 12px; }
.release li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 2px; background: var(--brown);
}
.footnote { margin: 32px 0 0; font-size: 13px; color: var(--text-3); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap {
  padding-top: 48px; padding-bottom: 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { width: 64px; height: 64px; display: block; }
.foot-brand p { margin: 0; font-size: 13px; color: var(--text-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; }
.foot-links div { display: flex; flex-direction: column; gap: 10px; }
.foot-links p { margin: 0; font-weight: 600; }
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--accent); }
.foot-links a.mail { color: var(--accent); }

/* Phones */
@media (max-width: 640px) {
  .nav { gap: 20px; }
  .nav .opt { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .sec { padding-bottom: 88px; }
  .hero, .page-hero { padding-top: 64px; padding-bottom: 48px; }
  .cal { padding: 24px 2px 20px; }  /* wide cells, close to the app's on a phone */
  .cal-head { margin: 0 16px 20px; }
  .note { padding: 24px 20px; }
  .cell { padding: 28px 20px 32px; }
  .release-meta { flex-basis: 100%; }
}
