/* Shared components: buttons, cards, section headings, badges, watch previews */

/* Buttons. The ledge means pressable: 2.5px edge, 5px bottom. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: var(--pressEdgeWidth) solid var(--strongBorderColor);
    border-bottom-width: var(--ledgeWidth);
    border-radius: var(--pillRadius);
    background: var(--surfaceColor);
    color: var(--textColor);
    font: 600 16px var(--fontDisplay);
    text-align: center;
    text-decoration: none;
    transition: transform 0.08s ease, border-bottom-width 0.08s ease;
}

.button:hover,
.button:active {
    transform: translateY(2.5px);
    border-bottom-width: 2.5px;
}

.button--primary {
    background: var(--blueSolidColor);
    border-color: var(--blueSolidEdgeColor);
    color: var(--onSolidColor);
    font-weight: 700;
}

.button--large {
    min-height: 56px;
    padding: 0 28px;
    font-size: 17px;
}

.button--small {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

.button--block {
    width: 100%;
}

/* Section heading group */
.sectionHeading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 640px;
}

.sectionHeading--wide {
    max-width: 680px;
}

.sectionEyebrow {
    font: 600 13px var(--fontBody);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondaryTextColor);
}

.sectionTitle {
    font-family: var(--fontDisplay);
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sectionLead {
    font-size: 17px;
    line-height: 1.5;
    color: var(--secondaryTextColor);
}

/* Static surface card: 2px flat edge, no ledge */
.card {
    display: flex;
    flex-direction: column;
    background: var(--surfaceColor);
    border: var(--staticEdgeWidth) solid var(--borderColor);
    border-radius: var(--cardRadius);
}

/* Pill badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border: 1.5px solid var(--blueTintEdgeColor);
    border-radius: var(--pillRadius);
    background: var(--blueTintColor);
    color: var(--blueInkColor);
    font-size: 11px;
    font-weight: 700;
}

/* Tinted icon tile */
.iconTile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: var(--staticEdgeWidth) solid;
    border-radius: 14px;
}

.tone-violet {
    background: var(--violetTintColor);
    border-color: var(--violetTintEdgeColor);
    color: var(--violetInkColor);
}

.tone-blue {
    background: var(--blueTintColor);
    border-color: var(--blueTintEdgeColor);
    color: var(--blueInkColor);
}

.tone-green {
    background: var(--greenTintColor);
    border-color: var(--greenTintEdgeColor);
    color: var(--greenInkColor);
}

.tone-cyan {
    background: var(--cyanTintColor);
    border-color: var(--cyanTintEdgeColor);
    color: var(--cyanInkColor);
}

.tone-navy {
    background: var(--navyTintColor);
    border-color: var(--navyTintEdgeColor);
    color: var(--navyInkColor);
}

/* Watch face. Fixed physical colors by design. */
.watchFace {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 112px;
    height: 136px;
    border: 3px solid var(--watchEdge);
    border-radius: 34px;
    background: var(--watchBody);
    color: #ffffff;
}

.watchFace__value {
    font: 700 24px/1 var(--fontDisplay);
}

.watchFace__label {
    font-size: 12px;
    font-weight: 600;
}

.watchFace__label--cyan {
    color: #86d9e8;
}

.watchFace__label--orange {
    color: #ffc690;
}

.watchFace__label--green {
    color: #8dddbd;
}

.watchFace__label--violet {
    color: #c9b0fa;
}
/* Share pages (/apps/*, /creators/*), rendered by api/main-api. Their CSP
   allows no inline styles. */
.share {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 48px;
    overflow-wrap: anywhere;
}

.shareIdentity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shareIcon {
    flex: none;
    object-fit: cover;
    border-radius: 22%;
}

.shareIcon--letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--borderColor);
    font: 800 24px var(--fontDisplay);
}

.shareIcon--56 {
    width: 56px;
    height: 56px;
}

.shareIcon--96 {
    width: 96px;
    height: 96px;
    font-size: 40px;
}

.shareMeta,
.shareNote {
    color: var(--secondaryTextColor);
}

.shareText {
    white-space: pre-line;
}

.shareApps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.shareApp {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--textColor);
    font-weight: 700;
    text-decoration: none;
}

.share button:disabled {
    transform: none;
    border-bottom-width: var(--ledgeWidth);
    color: var(--secondaryTextColor);
}
