/* Yame Editor site. Design values from the Apple DESIGN.md (oh-my-design.kr/apple, verified 2026-07-11):
   primary #0071e3, link #0066cc / #2997ff on dark, canvas #f5f5f7, surface #fff, foreground #1d1d1f, muted #6e6e73;
   display 56/60 600 -0.28, section 40/44 600, tile 28/32 400, body 17/25 -0.374, small 14/18, caption 12/16;
   pill radius 980px, 44px / 36px buttons, 18px cards, no shadows. SF Pro is not served (licence): system font stack. */
:root {
  --primary: #0071e3; --primary-hover: #0076df; --primary-pressed: #006edb;
  --link: #0066cc; --link-dark: #2997ff;
  --canvas: #f5f5f7; --surface: #ffffff; --black: #000000;
  --fg: #1d1d1f; --muted: #6e6e73; --secondary: #515154;
  --line: #d2d2d7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic",
          "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 25px; letter-spacing: -0.374px;
  color: var(--fg); background: var(--surface); -webkit-font-smoothing: antialiased; }
:lang(ko) body, :lang(zh) body { letter-spacing: -0.2px; word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow-wrap { max-width: 680px; }

/* nav: a translucent functional layer over the content */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(22, 22, 23, .78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; color: #f5f5f7; font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 22px; flex: 1; justify-content: center; }
.links a { color: rgba(255,255,255,.8); font-size: 12px; line-height: 16px; letter-spacing: -0.12px; }
.links a:hover { color: #fff; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang select { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; font: 12px var(--font); padding: 4px 6px; }
.lang option { color: #1d1d1f; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 11px 21px;
  border-radius: 980px; background: var(--primary); color: #fff; font: 400 17px/1 var(--font); border: 0; cursor: pointer; }
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn:active { background: var(--primary-pressed); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-compact { height: 36px; padding: 8px 15px; font-size: 14px; }
.btn-xs { height: 30px; padding: 6px 12px; font-size: 12px; }
.btn-outline { background: transparent; color: var(--link); border: 1px solid var(--link); }
.btn-outline:hover { background: rgba(0,102,204,.06); }
.btn-outline.on-dark { color: var(--link-dark); border-color: var(--link-dark); }
.btn-outline.on-dark:hover { background: rgba(41,151,255,.1); }
.linklike { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; }

/* sections */
.sec { padding: 100px 0; text-align: center; }
.light { background: var(--canvas); }
.white { background: var(--surface); }
.dark { background: var(--black); color: #f5f5f7; }
.dark .lead { color: #a1a1a6; }
.dark a:not(.btn) { color: var(--link-dark); }
.dark .btn:not(.btn-outline) { color: #fff; }
.eyebrow { margin: 0 0 8px; font-size: 21px; line-height: 25px; font-weight: 600; color: var(--muted); }
.dark .eyebrow { color: #86868b; }
h1 { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.28px; margin: 0 0 20px; }
h2 { font-size: 40px; line-height: 44px; font-weight: 600; margin: 0 0 16px; }
h3 { font-size: 21px; line-height: 25px; font-weight: 600; margin: 0 0 8px; }
.lead { font-size: 21px; line-height: 29px; color: var(--secondary); margin: 0 auto 40px; }
.narrow { max-width: 720px; }
.small { font-size: 14px; line-height: 18px; letter-spacing: -0.224px; }
.muted { color: var(--muted); }
.muted-dark { color: #86868b; }
.grad { background: linear-gradient(90deg, #2997ff, #a259ff 60%, #ff6b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero */
.hero { padding: 72px 0 0; overflow: hidden; text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.hero .lead { color: #a1a1a6; margin: 0 0 32px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-art img { width: 100%; max-width: 420px; margin: 0 auto -180px; }

/* video */
.video { position: relative; max-width: 960px; margin: 0 auto 48px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #1d1d1f; }
.video button.play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.video button.play img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video .play-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.video .play-icon::after { content: ""; border-left: 24px solid #1d1d1f; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.video .consent { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 12px; color: rgba(255,255,255,.75); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.soon { aspect-ratio: auto; height: 120px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1d1d1f, #2c2c30); }
.video.soon span { color: #a1a1a6; font-size: 21px; font-weight: 600; letter-spacing: .2px; }
.dark .video.soon { background: linear-gradient(135deg, #1d1d1f, #111113); border: 1px solid #2a2a2d; }

/* phone gallery */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0 0 48px; }
.phones figure { margin: 0; }
.phones img { width: 100%; max-width: 230px; margin: 0 auto 12px; }
.phones figcaption { font-size: 14px; line-height: 18px; color: var(--secondary); font-weight: 600; }

/* cards: 18px radius, flat */
.cards { display: grid; gap: 20px; text-align: left; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cards.five h3 { font-size: 17px; line-height: 22px; }
.card { background: var(--surface); border-radius: 18px; padding: 28px 24px; }
.white .card { background: var(--canvas); }
.card p { margin: 0; font-size: 14px; line-height: 20px; color: var(--secondary); letter-spacing: -0.224px; }
.key { display: inline-block; min-width: 40px; padding: 4px 10px; margin-bottom: 14px; border-radius: 8px; background: var(--fg); color: #fff;
  font-size: 14px; font-weight: 600; text-align: center; }

/* pills */
.pills { list-style: none; padding: 0; margin: 0 auto 40px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; }
.pills li { padding: 8px 16px; border-radius: 980px; background: var(--canvas); font-size: 14px; line-height: 18px; }
.pills.on-dark li { background: #1d1d1f; color: #f5f5f7; border: 1px solid #333336; }
.pills li.hl { background: var(--primary); color: #fff; border-color: var(--primary); }

/* feature tables */
.ftables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.ftable { background: var(--canvas); border-radius: 18px; padding: 24px; }
.ftable h3 { font-size: 17px; margin-bottom: 12px; }
.ftable ul { list-style: none; margin: 0; padding: 0; }
.ftable li { font-size: 14px; line-height: 19px; padding: 8px 0; border-top: 1px solid #e3e3e8; color: var(--secondary); }
.ftable li:first-child { border-top: 0; }

/* download */
.dl-box { background: var(--surface); border-radius: 18px; padding: 32px; text-align: left; max-width: 760px; margin: 0 auto 48px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dl-head strong { font-size: 28px; line-height: 32px; font-weight: 600; }
.sha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--canvas); border-radius: 8px; margin-bottom: 24px; }
.sha code { font: 12px/16px ui-monospace, "SF Mono", Consolas, monospace; word-break: break-all; flex: 1; }
.checks { margin: 0; padding-left: 20px; color: var(--secondary); font-size: 15px; line-height: 23px; }
.steps-title { margin-top: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; max-width: 760px; margin: 16px auto 20px; text-align: left; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border-radius: 18px; padding: 18px 20px 18px 64px; position: relative; font-size: 15px; line-height: 22px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* accordion (release notes, FAQ) */
.acc { max-width: 760px; margin: 0 auto; text-align: left; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 0 20px; color: var(--secondary); font-size: 15px; line-height: 23px; }
.acc .body ul { margin: 0; padding-left: 20px; }
.acc .date { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 8px; }

/* contact form */
.form { display: grid; gap: 16px; text-align: left; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--secondary); }
.form input, .form textarea { font: 17px/25px var(--font); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--fg); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 25px; font-size: 15px; }
.form-msg.ok { color: #1a7f37; } .form-msg.err { color: #c62828; }

/* notice band, footer, dialog */
.notice { background: #fff4ce; color: #5c4400; text-align: center; font-size: 14px; padding: 10px 22px; }
.foot { background: var(--canvas); color: var(--muted); font-size: 12px; line-height: 16px; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 8px; }
dialog { border: 0; border-radius: 18px; padding: 28px; max-width: 440px; width: calc(100% - 40px); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.lic-list { padding-left: 18px; color: var(--secondary); font-size: 15px; line-height: 26px; }

@media (max-width: 1000px) {
  .ftables { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
}
@media (max-width: 734px) {
  body { font-size: 16px; }
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 32px; line-height: 36px; }
  .lead { font-size: 18px; line-height: 26px; }
  .sec { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 24px; }
  .hero-art img { max-width: 280px; margin-bottom: -120px; }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .cards.two, .cards.three, .cards.five, .ftables { grid-template-columns: 1fr; }
  .dl-box { padding: 22px; }
  .nav-in { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
